execute bash script remotely with ssh

linux
Published

January 7, 2010

a bash script launched remotely via ssh does not load the environment, if this is an issue it is necessary to specify –login when calling bash:

ssh user@remoteserver.com ‘bash –login life_om/cronodproc’ | mail your@email.com -s cronodproc