So I've been tasked with creating a shell script to run in a cron every few minutes to check duplex settings on my eth0 nic card. I would like for the server to send a wall message to whoever is on the console or in a terminal session. Below is what I have so far.
I have it in my root's cron so that wall will run. Can someone tell me what I'm missing for the wall to actually happen?
Script looks like this;
annnnd the wall message file is called "duplex_error"
Operating system sun solaris 5.8
My problem is :
crontab -e
15 16 * * * /bckscripts/oo
vi /bcscripts/oo = wall " stop backup "
the system at the 16:15 all day time doesn't display message " stop backup "
What's the problem ???
i'am root user the follow is the root dir... (2 Replies)
how to store a date into file?
and how we can access date from the file?
---------- Post updated at 06:09 AM ---------- Previous update was at 06:08 AM ----------
how we can store date in file? (1 Reply)
Hi all!!
I have a nerve-wracking concept (probably for me!!) which is not understood. My crontab entry looks this way.
33 09 22 3 * /home/myexp.sh "Bgp4 ALL" >/dev/null 2>&1
But cron gets started occasionally. Sometimes it does. Sometimes it does not. And sometimes it hangs in the middle (I... (1 Reply)
Hi,
I have written a shell script to transfer files to a SFTP server passing the filername, source and dest directory as parameters and it runs well. :)
I want to schedule this script to run periodically using a cron job.
root@pingu # cat /etc/crontab
SHELL=/bin/bash... (1 Reply)
Hi friends,
today i created a cron job , registered the crontab file associated but dont know why the cron is not getting executed at the right time.??
content of Crontab file :
21 15 * * * /subrat/myt
i wanted to execute the script myt on 15:21 PM of everyday.
the script myt... (2 Replies)
Hi,
On linux cluster, i created a script to delete all temp files older than 5 days.
i am able to execute the script "dsh -ea script.ksh" in management node directly
But when i schedule "dsh -ea script.ksh" in crontab in management node it tells dsh command not found.
How to solve... (2 Replies)
I am new to creating crontab file , i just wrote below
(40 19 * 3 * /root/maths/practisecron.sh), the script just prints "Hi".
When ever i save the above file i am getting this .
# crontab -e
crontab: installing new crontab
Can you please check where it went wrong.. (1 Reply)
So I've been tasked with creating a shell script to run in a cron every few minutes to check duplex settings on my eth0 nic card. I would like for the server to send a wall message to whoever is on the console or in a terminal session. Below is what I have so far.
0,10,20,30,40,50 * * * * ... (7 Replies)
Good evening, ive got this cron to be run:
if i run this manually it doesnt work,it takes me to the prompt again
/export/app/CO/opge/scr/Informe_parametros_colombia.ksh >/dev/null 2>&1
here is the code fragment:
coopge@coopge: opge PRODUCCION>more... (1 Reply)
Hello gurus,
I am making what I think is a simple db2 call from within a shell script but I am having difficulty producing the desired
report when I run the script shown below from a shell script in cron. For example, my script and the crontab file setup
is shown below:
#!/bin/ksh
db2... (3 Replies)
Discussion started by: okonita
3 Replies
LEARN ABOUT REDHAT
wall
WALL(1) Linux User's Manual WALL(1)NAME
wall -- send a message to everybody's terminal.
SYNOPSIS
wall [ message ]
DESCRIPTION
Wall sends a message to everybody logged in with their mesg(1) permission set to yes. The message can be given as an argument to wall, or
it can be sent to wall's standard input. When using the standard input from a terminal, the message should be terminated with the EOF key
(usually Control-D).
The length of the message is limited to 20 lines.
NOTES
There is an undocumented (well not anymore..) option, "-n", that supresses the banner printed by wall . This is for usage by rwalld (8).
Wall will not allow you to use that flag if wall is installed set-group-id and the user executing wall is not root.
For every invocation of wall a notification will be written to syslog, with facility LOG_USER and level LOG_INFO.
ENVIRONMENT
Wall ignores the TZ variable - the time printed in the banner is based on the systems local time.
SEE ALSO mesg(1), rpc.rwalld(8).
AUTHOR
Miquel van Smoorenburg, miquels@cistron.nl
12 September 2000 WALL(1)