[Techtalk] Shell script not working for a remote ssh login -
manually enteringcommands work fine
Cynthia Kiser
cnk at ugcs.caltech.edu
Wed Mar 12 15:48:53 EST 2003
How are you doing "su" without typing a password? The scp part I
assume is handled by having exchanged key files between the 2
machines.
> #!/bin/sh
>
> su backup
>
> scp support.mycompany.com:/home/backup/support.tar.gz
> /home/backup/cur_support.tar.gz
>
> exit
>
> # End of script
--
Cynthia N. Kiser
cnk at ugcs.caltech.edu
More information about the Techtalk
mailing list