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!

Ftp File from Win to Unix & Create File

Status
Not open for further replies.

saw15

Technical User
Jan 24, 2001
468
US
I use a simple *.sh file to ftp files from a windows server to unix server.

At the end of ftp job, I want to create a text file which will act as a trigger file for another job.

Can you create a file within a ftp session?

Example... I ftp (get) approx 50 client files in the morning, once the ftp job gets the last file, I want to create a trigger file "start.txt" to use. Can this be done from the ftp session?

Help is appreciated.
 
I guess it depends on which flavour, but you can use:

! touch start.txt

to write an empty file within the ftp session. Alternativly, if the file has to contain something, use cp to copy a 'template' file to start.txt, again using ! within the ftp session.

HTH.
 
Thanks Ken, yes it was helpful. Ended up using the !touch.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top