New answers tagged at
I had this issue too and I solved it by using EOF. This is starting a ssh connection to sshserverhost that executes test.sh with parameter $HOSTNAME on the remote server (sshserverhost). at now + 1 minutes <<EOF ssh -t sshserverhost 'bash -s' <~/test.sh $HOSTNAME EOF
An at job is executed in the directory where the at command was called. Different implementations achieve that in different ways. It happens that yours does it by putting a cd command at the start of the job, before your code. An at job is also executed in the same environment as when the at command was called, and with the same umask. AIX implements ...
Top 50 recent answers are included