- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: cron executable
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 07:09 AM
04-20-2010 07:09 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 07:24 AM
04-20-2010 07:24 AM
Re: cron executable
I think you are looking for the path for the crontab executable file:
It reside in /usr/bin/
i.e # /usr/bin/crontab
You can also type from the prompt:
$ whereis crontab
Hth,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 07:32 AM
04-20-2010 07:32 AM
Re: cron executable
do the following:
# /sbin/init.d/cron stop ### to stop cron
# /sbin/init.d/cron start ### to start cron
or type:
# /usr/sbin/cron
-to check:
# ps -ef | grep -i cron
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 07:38 AM
04-20-2010 07:38 AM
SolutionYou don't. Changing the crontab just changes the file in /var/spool/cron/crontabs/
There is no such thing as an executable crontab file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 07:53 AM
04-20-2010 07:53 AM
Re: cron executable
nice to see.
uname -a
> [...] The cron daemon then picks up the
> changes to the crontab file.
Not without some help, it doesn't. Which is
why one uses "crontab -e" instead of simply
editing the actual crontab file.
man crontab
man cron
> [...] their supposedly researching the
> problem [...]
"They're"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 08:00 AM
04-20-2010 08:00 AM
Re: cron executable
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 08:25 AM
04-20-2010 08:25 AM
Re: cron executable
crontab /var/spool/cron/crontabs/root to schedule the changes... thanks to everyone that responded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2010 08:30 AM
04-20-2010 08:30 AM
Re: cron executable
>>opens the the crontab -e in a terminal window
Are you sure that when it opens the crontab in a terminal, that that isn't actually opening in the 'vi' editor in that terminal? If it is vi, you should still be able to make your changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 11:20 AM
04-21-2010 11:20 AM
Re: cron executable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 11:57 AM
04-21-2010 11:57 AM
Re: cron executable
So was "man crontab".
> [...] i see that editor=vi, [...]
Do you mean "EDITOR=vi"? (Or do you have the
only case-insensitive UNIX system in
captivity?)
> [...] would you happen to know what that
> should be changed to, to invoke the cde
> editor ??
Know? No. Guess: dtpad.
man dtpad
If I wanted exotic command-line options, I'd
create a script in a convenient place, and
then specify "EDITOR=that_script". Expect it
to need to pass a command-line argument.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 12:41 PM
04-21-2010 12:41 PM
Re: cron executable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 12:50 PM
04-21-2010 12:50 PM
Re: cron executable
I'm not sure what that would accomplish, other than just opening a terminal window.
I tried setting EDITOR=xterm on a Linux system and it did not work well. It opened a new xterm window, but the crontab file did not show up in an editor, which is about what I would expect.
I set EDITOR=gedit and then did a 'crontab -e' and the gedit editor opened and functioned quite well with the crontab file.
I would expect dtpad to work. You may need to give the full path to dtpad if it doesn't work with just EDITOR=dtpad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 12:51 PM
04-21-2010 12:51 PM
Re: cron executable
How or rather what are you running under exceed ? in otherwords are you logging into CDE, running a command via a terminal session or something else ?
within the terminal window type echo $TERM ?
result ?
export TERM=dtterm
try a crontab -e ?
result ?
If you can login via CDE let me know I'm more familar with that interface but have an old version of Exceed if needed if I boot into windows. currently uncertain if this is a bug or an issue with exceed/unix settings ....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 12:53 PM
04-21-2010 12:53 PM
Re: cron executable
Totally agree .... moment of madness
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 12:57 PM
04-21-2010 12:57 PM
Re: cron executable
i'm using exceed v10 with their secure shell v10 ...i'm guessing that in the command option that looks like "/usr/dt/bin/dtsession &", i need to add EXPORT=dtterm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 01:11 PM
04-21-2010 01:11 PM
Re: cron executable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010 02:04 PM
04-21-2010 02:04 PM
Re: cron executable
> ooops it was dtpad that worked...
And it wasn't "EXPORT=", either. You (and
your readers) might profit if you explored
the benefits of using that newfangled
copy+paste technology. As the eminent
Abraham Van Helsing once said, "[...]
knowledge is stronger than memory, and we
should not trust the weaker." Or as an
automotive expert on NPR once said, "If you
don't think too good, don't think too much."