- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Scripting Crontab
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
08-04-2004 06:44 AM
08-04-2004 06:44 AM
Do you have any ideas on how to make this work?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 07:20 AM
08-04-2004 07:20 AM
Re: Scripting Crontab
somewhat like
ftp -in << EOF
user u1 p1
cd
dir
get test1
quit
EOF
look for other threads with the search machine!
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 07:36 AM
08-04-2004 07:36 AM
Re: Scripting Crontab
/sbin/init.d/cron stop
/sbin/init.d/cron start.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 07:37 AM
08-04-2004 07:37 AM
Re: Scripting Crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 07:39 AM
08-04-2004 07:39 AM
Re: Scripting Crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 07:43 AM
08-04-2004 07:43 AM
Re: Scripting Crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 07:55 AM
08-04-2004 07:55 AM
Re: Scripting Crontab
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 08:11 AM
08-04-2004 08:11 AM
Re: Scripting Crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 08:38 AM
08-04-2004 08:38 AM
Re: Scripting Crontab
I would do send your new cron file into a remsh that invokes crontab on the remote host. Crobtab reads the stdin so this is a good fit. As a bonus, crontab automatically send a kill -1 to the cron daemon.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2004 09:32 AM
08-04-2004 09:32 AM
Solutionan example would be :
#!/usr/bin/ksh
if [ -a /var/adm/killcron ]
then
rm /var/adm/killcron
/sbin/init.d/cron stop
sleep 1
/sbin/init.d/cron start # if you want to restart it
fi
put this snippet of code into a script and call this script from cron at pre-designated intervals that you wish.
everytime you upload a file named /var/adm/killcron (change at your wish but make sure it is in a root-only access directory, unless you may have unexplained cron disappearances) using any method, ftp, scp, rcp and what-have-you, your cron will recycle on the next run of this script.
Hope this helps.
UNIX because I majored in cryptology...