Quote:
Originally Posted by cajunman4life
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? =)