LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-18-2005, 03:17 PM   #1
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
Help with a cron command


I am setting this up from webmin so that might provied a problem


From /usr/local/notesdata

I need to run /opt/lotus/bin/server

How do I type this command.
 
Old 01-18-2005, 04:31 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
I'm assuming you want to run this command via cron right? Become the user that you want to run it as. Then do 'crontab -l' to see what cronjobs are under that user. To edit the crontab, do a 'crontab -e'

* * * * * /opt/lotus/bin/server > /dev/null 2>&1

That's what a cron entry usually looks like. STDOUT will be redirected to /dev/null. (2>&1) STDERR will also be redirected to STDOUT which is redirected to /dev/null.

Do a 'man crontab' or 'man cron' to see what to input for the * * * * *.

-twantrd
 
Old 01-19-2005, 11:09 AM   #3
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Original Poster
Rep: Reputation: 30
I got it working.

I did a google search on lotus linux startup scripts and it gave me a listing for a startup script for redhat and I just changed what needed editing and it now works fine...

Last edited by phatboyz; 01-19-2005 at 11:36 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
works on command not on cron rickict Linux - General 1 11-17-2005 02:52 PM
Cron, unknown command Buto Linux - Software 1 09-07-2005 01:09 PM
cron command alphamike Linux - Newbie 2 08-28-2005 12:04 AM
How to run the cu command by cron tcore Linux - General 0 03-07-2005 08:22 AM
How to use cron command in Linux meng_en Linux - General 7 10-26-2002 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration