kd4ttc
04-05-2005, 03:38 PM
ssh admin@xxx.xxx.xx.xxx 'cp file1 file1.bak ; gzip file1.bak'
Set it up for passwordless login.
Alternative: put a shell script on the target computer and then invoke it remotely with ssh. For multiple commands that might work better.
You can also pipe the output:
ssh admin@xxx.xxx.xx.xxx 'cp file1 file1.bak ; gzip file1.bak' | grep grep_args
Steve
Set it up for passwordless login.
Alternative: put a shell script on the target computer and then invoke it remotely with ssh. For multiple commands that might work better.
You can also pipe the output:
ssh admin@xxx.xxx.xx.xxx 'cp file1 file1.bak ; gzip file1.bak' | grep grep_args
Steve
