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 ...


The services on a CentOS operating system are managed using chkconfig. Use chkconfig --list to review the currently managed services. You can mark a service to automatically start at a defined runlevel by issuing: # chkconfig someservice on Read the chkconfig(8) manpage for the details.


If you're trying to get the computer to boot, logon, and start a browser your best bet is a combination of the AutoAdminLogon functionality and your already-working logon script. Plug: I wrote an Administrative Template for Group Policy for AutoAdminLogon. This makes applying this setting to machines via Group Policy very handy, albeit it's not a "real" ...


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