- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
01-27-2004 05:35 PM
01-27-2004 05:35 PM
crontab
does any one knows how to execute shell script
interactively by using crontab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 05:42 PM
01-27-2004 05:42 PM
Re: crontab
i think just edit ur crontab file and give the path to ur executable file and ask it to give the std output to /dev/console
like "sh /tmp/file >/dev/console".Hope,this might solves ur problem.
Bhanu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 06:08 PM
01-27-2004 06:08 PM
Re: crontab
cron jobs are non-interactive.
A user may change his cron jobs by usinge 'crontab -e' (edit user's crontab file).
You may also want to consider the 'at' command.
I'm not sure what you mean by interactively.
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 06:26 PM
01-27-2004 06:26 PM
Re: crontab
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 06:28 PM
01-27-2004 06:28 PM
Re: crontab
main function of cron is to run jobs silently in background.
If you want to do it interactively it's batter to run script manually.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 06:52 PM
01-27-2004 06:52 PM
Re: crontab
You could start a script in an xterm scheduled by cron I iamgine.
a cron job that did something like
00 10 * * * xterm -e "/usr/local/bin/myscript" -display :0
Would start an interactive script at 10.00 in the morning on the console if it was a X console.
However, I can only see this working for X applications.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2004 08:49 PM
01-27-2004 08:49 PM
Re: crontab
that's tricky. Such a cronjob will only end if the xterm is closed?
JP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2004 03:05 AM
01-29-2004 03:05 AM
Re: crontab
Consider the following script (I call foo.ksh):
#!/bin/ksh
#
read mystuff
echo $mystuff
You run it and get
foo.ksh
Hello World
Hello World
If you create yet another script (I call foo2.ksh):
#!/bin/ksh
#
/mydir/foo.ksh<
EOF
The second script is submitted as a cronjob.
It calls the first script with the operator responses directed into the first script. So, you can take a standard script or program put the responses after the line that runs the script or program and submit it as a job.
0 0 * * * * /mydir/foo2.ksh
foo2.ksh runs foo.ksh every night at midnight
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2004 10:07 PM
02-02-2004 10:07 PM
Re: crontab
I have tried it but still it is not
working.ya but it is manually working,
I mean.....
#xterm -e test.sh
after firing this manually it is working but
in crontab it is not .
so pls help me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2004 02:03 AM
02-03-2004 02:03 AM
Re: crontab
you have to set all the Env-vars usually set
in .profile,... in your cronjob BEFORE using them or supply options,.. instead.
Put localhost / your hostname in /etc/X0.hosts
to get permanent access to your display and try
xterm -display localhost:0 ...
mfG Peter