Run UNIX script through FTP

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Run UNIX script through FTP

Post by snassimr »

Hi !!!

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

Thanks,
Nissim
mk_ds09
Participant
Posts: 72
Joined: Sun Jan 25, 2009 4:50 pm
Location: Pune

Post 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
snassimr
Premium Member
Premium Member
Posts: 281
Joined: Tue May 17, 2005 5:27 am

Post 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
WoMaWil
Participant
Posts: 482
Joined: Thu Mar 13, 2003 7:17 am
Location: Amsterdam

Post 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
Wolfgang Hürter
Amsterdam
mk_ds09
Participant
Posts: 72
Joined: Sun Jan 25, 2009 4:50 pm
Location: Pune

Post 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
Post Reply