08-26-2016
chkconfig is for system services.
For scripts to be run as a normal user, I suggest the user's crontab, with the line @reboot /path/to/script.sh
Beware that cron's environment is intentionally minimal, your script may need to set its own fuller PATH or . /etc/profile before it does anything else or it might not find the commands it needs.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi all,
I am using Sun Solaris 9 .In this system normal users unable to create files from the command line.I added these users in bin,adm and even root group i found them unable to create a file. (1 Reply)
Discussion started by: mallesh
1 Replies
2. Shell Programming and Scripting
I am writing a script that has some tasks that must be run as root, then set of tasks to be run as normal user, then again as root.
is there a way to switch between users in a script?
any other alternatives?
thx (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
3. Shell Programming and Scripting
Got a cron to run everyday under my user. this cronjob runs a script from my /home/jack/scripts/run.sh
clear
#
# su to root and run a script, return with result
# su -
# passwd
# run /getfile.sh
# return with result
# the result will copy 2 files from /prod/app/logs/ and... (0 Replies)
Discussion started by: karthikn7974
0 Replies
4. Shell Programming and Scripting
Dear all
Ihave written a script in Hpux9.0, the ecript is working fine if I run it from root command prompt
But when I am running it thru /etc/profile or /user/.profile and login as a normal user, the owner of the process running the script is the normal user & hence cant run a root privileaged... (7 Replies)
Discussion started by: initin
7 Replies
5. Shell Programming and Scripting
Hi All
I have written one shell script for GPRS route add is given below named GPRSRouteSet.sh
URL="www.google.com"
VBURL="10.5.2.211"
echo "Setting route for $URL for GPRS"
URL_Address=`nslookup $URL|grep Address:|grep -v "#"|awk -F " " '{print $2}'|head -1`
echo "Executing ... (3 Replies)
Discussion started by: mnmonu
3 Replies
6. Shell Programming and Scripting
Hi,
We need to execute a root commmand to change the expiry period of a user but we are getting error as permission denied
Q How can we execute a root command by a normal user ? :mad:
any thing or suggestion will be good .... :b: (3 Replies)
Discussion started by: abhishek1979
3 Replies
7. AIX
If I create a new user id test:
mkuser id=400 test
then I want it to LDAP user:
chuser -R LDAP SYSTEM=LDAP registry=LDAP test
It shows:
3004-687 User "test" does not exist.
How to do? (4 Replies)
Discussion started by: rainbow_bean
4 Replies
8. Solaris
:confused: I installed latest version of java ( jre 1.6) on Solaris Machine ......when I run java -version as root, shows the latest version but when I run java -version as normal user, shows the old / previous version
What should I do to fix this ...should show the latest version... (3 Replies)
Discussion started by: frintocf
3 Replies
9. UNIX for Dummies Questions & Answers
Hi ,
I am trying to stop and start a process using the below code. I have sudo access on my machine
## PID = process id
echo "$PASSWD" | sudo -S kill -9 <PID>
echo "$PASSWD" | sudo -S /opt/abc/startserver
/opt/abc/startserver: error while loading shared libraries: librts.so: cannot open... (6 Replies)
Discussion started by: rakeshkumar
6 Replies
10. UNIX for Dummies Questions & Answers
Whenever i switch from root to another user, by doing su - user, it takes me to home directory of user. This is very annoying as i want to be in same dir to run different commands as root sometimes and sometimes as normal user.
How to fix this? (1 Reply)
Discussion started by: syncmaster
1 Replies
LEARN ABOUT DEBIAN
gnome-schedule
GNOME-SCHEDULE(1) General Commands Manual GNOME-SCHEDULE(1)
NAME
gnome-schedule - GNOME GUI for users' crontabs
SYNOPSIS
gnome-schedule [option...]
DESCRIPTION
gnome-schedule is a graphical user interface that leverages the power of cron or anacron and at to manage a user's crontab file and provide
an easy way to schedule tasks. It supports recurrent tasks and tasks that happen only once in the future. The user interface translates
cron strings into human-readible form for ease-of-use, but also has an expert option for those familiar with the cron file format.
For documentation on interactive use of gnome-schedule, select the Help menu option while running the program.
OPTIONS
gnome-schedule supports the standard GTK+ and GNOME command-line options, most of which need not be used except in special circumstances.
To view a complete list, see gnome-schedule --help.
BUGS
There are currently no known bugs. If you encounter one, please report it using reportbug gnome-schedule.
SEE ALSO
cron(8), crontab(1), crontab(5), anacron(1), at(1)
AUTHOR
This manual page was written by David Moreno Garza <damog@debian.org>, and revised by Christine Spang <christine@debian.org> for the Debian
project (but may be used by others).
November 22, 2007 GNOME-SCHEDULE(1)