at and cron annoyingly different

D. Hugh Redelmeier hugh-pmF8o41NoarQT0dZR+AlfA at public.gmane.org
Fri Nov 18 14:48:00 UTC 2011


| From: gyre-Ja3L+HSX0kI at public.gmane.org

| These work fine with `dirname "$0"` inside a script which yields '/tmp':
|   echo  /tmp/tmp1.sh | at now
|   echo  /tmp/tmp1.sh | batch

Try
	at -f /tmp/tmp1.sh now

You will get /bin.  At least I do.  And I was surprised.
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list