Re: command not found on remote server

2008-12-11 Thread Ken Irving
On Thu, Dec 11, 2008 at 03:35:33PM -0700, Bob Proulx wrote: > Paul Jarc wrote: > > Bob Proulx wrote: > > > Also, using full paths is frowned upon. > > > > You mean invoking /directory/some-command directly instead of > > PATH=$PATH:/directory > > some-command > > ? > ... > ... I was actually comme

Re: command not found on remote server

2008-12-11 Thread Bob Proulx
Paul Jarc wrote: > Bob Proulx wrote: > > Also, using full paths is frowned upon. > > You mean invoking /directory/some-command directly instead of > PATH=$PATH:/directory > some-command > ? Yes. That is what I am saying. > It depends on the situation. I can't disagree with that. > If you thin

Re: command not found on remote server

2008-12-11 Thread Paul Jarc
Bob Proulx wrote: > Also, using full paths is frowned upon. You mean invoking /directory/some-command directly instead of PATH=$PATH:/directory some-command ? It depends on the situation. If you think some-command is in /directory, but you want to allow for the possibility that it might be some

Re: command not found on remote server

2008-12-11 Thread Bob Proulx
Paul Jarc wrote: > Dolphin06 wrote: > > Can i do something like this : > > ssh $u...@$server export PATH=$PATH:/other path/ ; script param > > You'd have to quote the sequence of commands that should run on the > remote host, so that the local bash and ssh see it as all one parameter: > ssh $u

Re: command not found on remote server

2008-12-11 Thread Paul Jarc
Dolphin06 <[EMAIL PROTECTED]> wrote: > Can i do something like this : > ssh [EMAIL PROTECTED] export PATH=$PATH:/other path/ ; script param You'd have to quote the sequence of commands that should run on the remote host, so that the local bash and ssh see it as all one parameter: ssh [EMAIL PR

Re: command not found on remote server

2008-12-11 Thread Dolphin06
; -- > ``The lyf so short, the craft so long to lerne.'' - Chaucer > > Chet Ramey, ITS, CWRU[EMAIL PROTECTED] > http://cnswww.cns.cwru.edu/~chet/ > > > > -- View this message in context: http://www.nabble.com/command-not-found-on-remote-server-tp20953229p20956977.html Sent from the Gnu - Bash mailing list archive at Nabble.com.

Re: command not found on remote server

2008-12-11 Thread Chet Ramey
Dolphin06 wrote: > Hello all, > > Some script on the remote server are called in .bash_profile, so they are > accessible for the user. But when i send a command via ssh, and that my > command call those script, it says command unknown... > What can i do for it to work ? Either change your comman

command not found on remote server

2008-12-11 Thread Dolphin06
://www.nabble.com/command-not-found-on-remote-server-tp20953229p20953229.html Sent from the Gnu - Bash mailing list archive at Nabble.com.