Concurrent Program to FTP file [message #352126] |
Mon, 06 October 2008 04:44 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
cjhall01
Messages: 6 Registered: September 2008
|
Junior Member |
|
|
Hi,
I am new to writing Linux scripts and am trying to set up a concurrent program which will regularly FTP a file from our DB server to a remote ftp server.
I have written a shell script in Notepad which looks something like
#!/bin/ksh
ftp <servername>
user <username> <password>
cd /usr/tmp
put <filename>
and I have named it and put it in /app00/applmgr/ftrani/appl/xbol/11.5.0/bin - I have given the file the '777' permissions.
I have then defined the executable, set it up as a concurrent program and then ran it as a request.
When I do this I get an error message saying that the executable for this program cannot be executed.
Can anyone help me with this? I'm not sure whether it is the file I have created or what I've done with it, if anyone has any examples or anything for this it would be greatly appreciated, thank
Chris
|
|
|
Re: Concurrent Program to FTP file [message #352136 is a reply to message #352126] |
Mon, 06 October 2008 05:21 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
soniasaini23
Messages: 5 Registered: April 2005 Location: gurgaon
|
Junior Member |
|
|
Launch a telnet session
Go to $XBOL_TOP/bin
$ chmod 755 program_name.prog
$ pbrun impdba –u uroracleuser
$ ln -s $FND_TOP/bin/fndcpesr $XBOL_TOP/bin/program_name
n executable method should be host.
|
|
|
|
|
Re: Concurrent Program to FTP file [message #352154 is a reply to message #352152] |
Mon, 06 October 2008 06:10 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
soniasaini23
Messages: 5 Registered: April 2005 Location: gurgaon
|
Junior Member |
|
|
That’s the way Oracle On Demand works, this won’t work under other environments.
Skip this step if you are not using oracle on demand.
otherwise enter the command as
pbrun impdba -u <ur instance name like abprod>.
|
|
|
|
|
|
Re: Concurrent Program to FTP file [message #352395 is a reply to message #352126] |
Tue, 07 October 2008 07:59 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
cjhall01
Messages: 6 Registered: September 2008
|
Junior Member |
|
|
Hi,
I have managed to re-write my shell with vi, I have
then made sure that the permissions on the file are correct, then formed a soft link with the fndcpesr command,
then defnied it as an executable,
then defined it as a concurrent program,
then added it to a request set and ran it but am still getting the same error message that the executable cannot be ran,
can anyone think of what else I may not have done?
|
|
|