LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 01-28-2007, 10:05 AM   #1
julot
Member
 
Registered: Feb 2005
Location: Bogotá, Colombia
Distribution: Slackware
Posts: 36

Rep: Reputation: 15
run command as normal user at boot time


Hi. I'd like to run a command (send to myself an email with reminders for the day) at boottime. However, the command should be run as a normal user.

The first option to do this is to put it at /etc/rc.d/rc.local, but this requires root access. I'm looking for something similar to the @reboot feature of vixie cron (without being forced to replace dillon's cron with it)

Thanks,
 
Old 01-28-2007, 10:16 AM   #2
erklaerbaer
Member
 
Registered: Mar 2006
Distribution: Slackware
Posts: 381

Rep: Reputation: 30
why not put it in your .login file?

another hack would be to use
>su user -c "command"
 
Old 01-28-2007, 10:27 AM   #3
julot
Member
 
Registered: Feb 2005
Location: Bogotá, Colombia
Distribution: Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by erklaerbaer
why not put it in your .login file?
Because I need to run the command regardless of if I'm logged in or not.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to run root command having normal user permission ravi.patil Linux - Newbie 7 05-21-2006 02:21 PM
can,t run kde as normal user. little_ball Slackware 1 12-29-2004 10:13 AM
Warcraft 3 Won't Run Anymore For Normal User GT_Onizuka Linux - Games 5 01-25-2004 11:05 AM
Run ipchains as normal user? jlangelier Linux - Newbie 1 07-27-2003 01:56 AM
How to run Arson as a normal user Mojojo Linux - Software 0 07-10-2003 05:36 PM


All times are GMT -5. The time now is 06:41 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration