View Single Post
  #4   (View Single Post)  
Old 7th June 2008
splooge splooge is offline
New User
 
Join Date: May 2008
Posts: 5
Default

Quote:
Originally Posted by cajunman4life View Post
An alternative solution is you can put the data to a file locally, then SCP that file to the remote box.

Example:
I want to add today's date to file foo, and copy it to another box.

Code:
echo `date` >> /path/to/foo
scp /path/to/foo foouser@barserver:/path/to/foo
Don't know if that'll work for you, but it's a solution.
Thanks for the reply, and thanks for the idea! This would certainly work, but I'm looking for something a little bit cleaner. I'd prefer to append to the file directly on the remote box, instead of appending to a local file then SCPing it over. I may be asking for too much, eh? =)
Reply With Quote