I have a bash script that runs rsync and I have been trying to add a command to shutdown the computer after the backup has finished running.

I have added,

shutdown -s now

and also tried,

shutdown -s 5
shutdown -x now
shutdown -x 5

but the computer doesn't shut down. Running which shutdown gives me,

/usr/bin/shutdown

so I know its there.

Any suggestions?

LMH

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

Reply via email to