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!

starting an AIX process after a Windows XP process finishes

Status
Not open for further replies.

ddiamond

Programmer
Apr 22, 2005
918
US
I'd like to launch a ksh script on AIX directly after a file is created on our Windows server and then FTPed to our AIX server. What would be the best way to accomplish this? I could write a ksh script that would loop until that file exists, but wouldn't this eat up a lot of resources? Is there a better way?
 
Here commes some solution

1st Buy a good scheduler

2nd use ssh at the end of your xp script to execute the script on the aix box
 
Try looking at the PuTTY family. The Plink program will do what you want.

If you want a looping script then the sleep command doesn't use resources. I have an equivalent of this where the loop is

Code:
while [ ! -f /tmp/test.file ]
do
  sleep 30
done
process file

Columb Healy
 
Thanks for your tips. We currently only have windows boxes, but in December we are going to move our DB2 from windows to AIX, so I'm trying to figure out how to migrate all of our current scripts. I'll try out your suggestions in December when we move to AIX.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top