06-29-2010
Hi Radoulov,
Are you not getting the output of date command on the terminal ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I'm using a bourne shell to kick off a 3rd Pty app. This app uses Orbix. When I exit from the telnet session which started the app or hit CTRL-C at the command line, the orbix process dies, yet all other process remain.
I've tried starting the app as a background process, but it still... (1 Reply)
Discussion started by: edgarm
1 Replies
2. Shell Programming and Scripting
Dear Unix Gurus,
Here is my query.
If i start a script,it inturn calls many other scripts ..and most of them continue to run in parallel.
Suppose,if i want to stop my script for some reason,i need to kill -9 each of the processes running.It becomes clumsy if the sub processes r more.
... (15 Replies)
Discussion started by: gvsreddy_539
15 Replies
3. UNIX for Dummies Questions & Answers
I want to check whether the variable read from the console is number or character , so i used echo $option|grep and checked the reuslt returned by grep cmd using $?
But since I use echo the value is getting printed in the screen , I want to supress the o/p. Can anyone suggest how this can be... (1 Reply)
Discussion started by: rolex.mp
1 Replies
4. Shell Programming and Scripting
Is there a way to suppress the output that script command displays - "Script command started..." (4 Replies)
Discussion started by: ggayathri
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a situation where I am writing a programme that runs a series of long running PHP scripts that can take anything from 20 minutes to 10 hours to execute.
I have a solution half implemented where I use via php exec(wget <location to command>) and get the process id back.
This... (1 Reply)
Discussion started by: mrploddy
1 Replies
6. Shell Programming and Scripting
So this one just plain confuses me. I have a bunch of somewhat CPU intensive processes that all communicate using a shared memory region. Some of these programs are threaded and some also change the scheduling to FIFO or round robin. The good news is that everything works as long as I spawn... (3 Replies)
Discussion started by: talkingfennel
3 Replies
7. Shell Programming and Scripting
Hi Guys,
I'm completely new to bash and trying to write a script to spawn a telnet session to retrieve the RSSI value of my device and log the average value of the RSSI over 20 samples. I know that my command does return the RSSI value successfully but my bash scripting is letting me down.
I'm... (5 Replies)
Discussion started by: bwkm
5 Replies
8. Shell Programming and Scripting
Hi,
I am using cygwin.
Below is my script that reads all ip ports for iplist.txt and telnets to it.
(
file="iplist.txt"
while read line
do
echo $line
echo $(telnet $line)
done <"$file"
) > output2.txt
~
while the output2.txt gets the first echo but does not show the second... (2 Replies)
Discussion started by: mohtashims
2 Replies
9. Shell Programming and Scripting
Hi guys,
I'm writing a script on a Solaris 10 server (server A) that needs to telnet 2 servers (server B & server C) and get a certain process count from these 2 servers.
Then on server A, I check if both counts are greater than 17, I do a sendmail to concerned people.
For the telnet part,... (7 Replies)
Discussion started by: frum
7 Replies
10. HP-UX
Hi,
When I run the command "print_manifest | grep "Main Memory", I get the note :
# /opt/ignite/bin/print_manifest | grep "Main Memory"
NOTE: Could not read the /etc/resolv.conf file.
Main Memory: 196498 MB
#
How do I suppress the part :
NOTE: Could not read the... (4 Replies)
Discussion started by: anaigini45
4 Replies
LEARN ABOUT OPENSOLARIS
rcvtty
RCVTTY(1) [nmh-1.5] RCVTTY(1)
NAME
rcvtty - report new mail
SYNOPSIS
/usr/lib/mh/rcvtty [command] [-form formatfile] [-format string] [-width columns] [-bell | -nobell] [-newline | -nonewline] [-biff] [-ver-
sion] [-help]
DESCRIPTION
The rcvtty can be used to report new mail. It is used primarily in conjunction with mail filtering agents such as slocal or procmail.
The rcvtty program executes the named command with the message as its standard input, and writes the resulting output on your terminal.
Alternately, if no command is specified (or is bogus), then rcvtty will instead write a one-line scan listing. The default output format
of this scan listing may be overridden by using either the -form formatfile or -format string option, similar to the equivalent options for
scan and inc. See mh-format(5) for details.
A newline is output before the message output, and the terminal bell is rung after the output. The -nonewline and -nobell options will
inhibit these functions.
The switch -width columns may be given to specify the width of the scan line. The default is to use the width of the terminal.
In addition to the standard format escapes described in mh-format(5), rcvtty also recognizes the following additional component escapes:
Escape Returns Description
body string the (compressed) first part of the body
dtimenow date the current date
folder string the name of the current folder
By default, rcvtty will send its output to every terminal on the local machine that is owned by current user, and that has given write per-
mission as granted by the command mesg(1). If the option -biff is given, then rcvtty will obey the notification status set by the command
biff(1) instead.
FILES
/etc/nmh/mts.conf nmh mts configuration file
$HOME/.maildelivery The file controlling local delivery
/etc/nmh/maildelivery Rather than the standard file
CONTEXT
None
DEFAULTS
`-width' defaults to the width of the terminal
`-newline'
`-bell'
SEE ALSO
rcvdist(1), rcvpack(1), rcvstore(1), mh-format(5), slocal(1)
BUGS
Only two return codes are meaningful, others should be.
MH.6.8 11 June 2012 RCVTTY(1)