LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-11-2004, 08:33 AM   #1
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Rep: Reputation: 30
Two cron questions


I know that I am not supposed to ask two questions in one post, but these two are very closely related. Apologies in advance.

1. How can I make sure that my cron daemon is loading at boot. What file do I examine?

2. What command do I put after | to make sure that the outcome is going to a log file?

Andy
 
Old 01-11-2004, 09:13 AM   #2
hiteshmaisheri
Member
 
Registered: Nov 2003
Location: Kerala, India
Distribution: Red Hat, Knoppix, Mandrake, FreeBSD
Posts: 231

Rep: Reputation: 30
the answer to ur first answer is that just give the command
/sbin/services --status-all
this command will tell u all the running daemons(services) which are presently running or are stopped by the superuser....
 
Old 01-11-2004, 09:20 AM   #3
hiteshmaisheri
Member
 
Registered: Nov 2003
Location: Kerala, India
Distribution: Red Hat, Knoppix, Mandrake, FreeBSD
Posts: 231

Rep: Reputation: 30
the answer to ur first answer is that just give the command
/sbin/services --status-all
this command will tell u all the running daemons(services) which are presently running or are stopped by the superuser....
 
Old 01-11-2004, 09:40 AM   #4
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Original Poster
Rep: Reputation: 30
Is it possible that /sbin/services is called something else in slack 9.1, because it is nowhere on my system
 
Old 01-11-2004, 09:48 AM   #5
Bebo
Member
 
Registered: Jul 2003
Location: Göteborg
Distribution: Arch Linux (current)
Posts: 553

Rep: Reputation: 31
I'm not sure slack has any of these check-running-services tools like services and chkconfig. You could check your running processes: try ps aux | grep cron and see if crond is in the list you get.

Your second question: to log the output of a command, you can redirect the output from stdout to a file, just by

command > /path/to/logfile

HTH
 
Old 01-11-2004, 02:35 PM   #6
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
And in cron, everything echoed will be mailed to you.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron questions darkleaf Debian 2 06-21-2005 01:23 PM
cron job questions.... chunlee Linux - Software 1 02-18-2005 05:51 AM
rc.local and cron questions wenberg Slackware 17 07-31-2004 11:18 PM
rc.local and cron background questions Greg21 Linux - Software 1 06-29-2003 11:46 AM
Just Questions..... OSS, cron, inetd, etc ?? nautilus_1987 Linux - General 12 11-28-2002 11:31 AM

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

All times are GMT -5. The time now is 04:11 AM.

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