- or download this
#!/usr/bin/perl -w
use strict;
...
system(sprintf "pwd >> %s",$logfile);
exit(0);
- or download this
$ echo "/path/to/my/script/above.pl ascron" | at now
- or download this
$ /path/to/my/script/above.pl ascmdlin
- or download this
diff /tmp/ascron-env.txt /tmp/ascmdlin-env.txt