Keith, On 22/11/05, keith wong <[EMAIL PROTECTED]> wrote: > Hello, > I need control remote host thru ssh to tar all backup > file, but I get into problem of "su - " command after > ant <sshexec> in. I not sure how to keep ssh session > and process two steps command to archive. Here is > steps I need to make: > 1. SSH to remote. > 2. su to our user.
not sure how to do this ant (haven't looked at the documentation), but I would probably ssh -l theRemoteUserName to the remote site. Of course, it would be bad practice to ssh as root ... HTH > 3. tar all backup and save it to privielge > restricted location allowed > from that "su"ed user. > 4. compress the tar to save space. > > Thank you for any input. > > Regards, > Keith > > > -- cheers, Jakob. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]