Tag Info

Hot answers tagged


You probably have a carriage return (^M) at the end of your #! line. The format of the #! line is very strict, and carriage return is not allowed there, unless your interpreter is actually called /bin/bash^M There will never be carriage returns in a file created with a proper unix editor, unless you go out of your way to add them. When editing an existing ...


It depends on the init daemon you are using. For SysVInit you can assume something like the following to happen when you change the runlevel to 0: rl=0 for k in /etc/rc$rl.d/K*; do $k stop done for s in /etc/rc$rl.d/S*; do $s start done I can't see a contradiction of the sentence you cited to the things you said above.


In your shell initialization script (e.g., ~/.bash_profile) add last --ip --limit 10


Use WorkingDirectory option: WorkingDirectory <string> This optional key is used to specify a directory to chdir(2) to before running the job. To see all available options, check launchd.plist manual page.

Only top voted, non community-wiki answers of a minimum length are eligible