Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 435 Bytes

execute-bash-script-remotely-with-ssh.md

File metadata and controls

14 lines (13 loc) · 435 Bytes

Title: execute bash script remotely with ssh Date: 2010-01-07 14:37 Author: Andrea Zonca Tags: linux, bash Slug: execute-bash-script-remotely-with-ssh

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