Page 1 of 1

Run UNIX script through FTP

Posted: Mon Jan 26, 2009 1:58 am
by snassimr
Hi !!!

If any way to run UNIX script hrouth FTP ? THis script will run the Ds Job.

Thanks,
Nissim

Posted: Mon Jan 26, 2009 3:48 am
by mk_ds09
Some of the options u can think of..!

1. If you can FTP to the server, you are knowing the server ! :)
why dont u logon on that server instead of the server and run the unix script from the server only..!

this is just one of the option i am giving ..! :)

2. There is routine 'DSWaitForFile' which suspends the job execution for sometime..

So instead of running script you can modify script to check whether certain 'X' file present on the given location on which the triggering of the job will depend..!

hope this helps

----------------------------------
MK

Posted: Mon Jan 26, 2009 3:59 am
by snassimr
1. I need to do it automaticly and schedule this ftp command
2. I use it know and I am not happy with this

Posted: Mon Jan 26, 2009 4:08 am
by WoMaWil
You have to do it in two step.

First you need a certain daemon runing in UNIX, who is scanning a directory for tasks. If it is empty he will look back a certain time n again.

Second, you ftp a file with the task or as token via ftp to this server.

Kind regards
Wolfgang

Posted: Mon Jan 26, 2009 4:16 am
by mk_ds09
I read somewhere regarding the 'AC QUOTE ' which sends command using the FTP..dont have luck on any documentation!

however word of caution :-

ftp sessions are not to execute scripts !
Ftp is exactly that - (File Transfer Protocol).
RSH (remote shell) may be what you are looking for.


hope this helps

-----------------------------

MK