Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script help pls

Status
Not open for further replies.

Murugs

Technical User
Jun 24, 2002
549
US
Hello Everybody,

I need a script to perform the foll functionality.

1. First I need to ftp to my unix server with my username and password.
2. Copy one file (say junk.txt) from my local NT machine to UNIX server

I have written a script and running it in my local NT machine which does the above 2 steps.

3. Start one executable which is in the UNIX machine.
The format of my executable is

/usr/apps/dyna job = junk.txt
/usr/apps/dyna is my executable
job is a keyword
junk.txt is the file transfered

I am stuck up with the executable part here.

Manually what we do is do ftp,transfer the files and go to shell prompt and type /usr/apps/dyna job = junk.txt.
Is there any way to automate this.
Is rcp,rsh etc utilities used to perform these functions.
 
FTP is only for transfering files, adding, deleting
or change permissions.

You will need shell access to execute a job or script.

An alternative would be to have a cron job run
on the the unix side that checks for file junk.txt
and then executes a script. Robert G. Jordan
Unix Sys Admin
Sleepy Hollow, Illinois U.S.A.
sh.gif


FREE Unix Scripts
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top