11-11-2010
Thx, it seems interesting
10 More Discussions You Might Find Interesting
1. Solaris
what is the mean: echo -n "^0;!*^G"
thanks (3 Replies)
Discussion started by: chris_chang
3 Replies
2. Shell Programming and Scripting
Hi,
I've modified the syslogd source to include a thread that will keep track of a timer(or a timer thread). My intention is to check the file size of /var/log/messages in every one minute & if the size is more than 128KB, do a echo " " > /var/log/messages, so that the file size will be set... (7 Replies)
Discussion started by: jockey007
7 Replies
3. Shell Programming and Scripting
So in my shell i execute:
{ while true; do echo string; sleep 1; done } | read line This waits one second and returns.
But
{ while true; do /bin/echo string; sleep 1; done } | read line continues to run, and doesn't stop until i kill it explicitly.
I have tried this in bash as well as zsh,... (2 Replies)
Discussion started by: ulidtko
2 Replies
4. Shell Programming and Scripting
Hello All
Nice to meet you all here in this forum,
it's my 1rst time here
i'm asking about a little issue that i face
i added a ksh script that echo " please insert your name " and store the output to a login.log file.
the script is working fine with normal telnet
but Xstart is not working... (8 Replies)
Discussion started by: islam.said
8 Replies
5. Shell Programming and Scripting
Hello, I have a simple(I think) question!
Although simple, I have been unable to resolve it, so I hope someone can help! OK, here it is:
1)I have an awk script that prints something, such as:
awk '{print $2}' a > x
so x might hold the value of say '10'
2)Now, I just want to check to see if... (4 Replies)
Discussion started by: astropi
4 Replies
6. Shell Programming and Scripting
Hi guys,
I have a shell script where I have the following:
for i in ad0 ad1
do
gpart create -s gpt $i || echo "Cannot create GPT partition on "$i". Exiting ..."
gpart add -s 128 -t freebsd-boot $i || echo "Cannot add freebsd-boot partition on "$i". Exiting ..."
gpart add -s 4G -t... (2 Replies)
Discussion started by: da1
2 Replies
7. AIX
Hi Folks,
As per the subject, the following command is not working as expected.
echo $variable | mail -s "subject" "xxx@xxx.com"
Could anyone figure it out whats wrong with this. I am using AIX box.
Regards, (2 Replies)
Discussion started by: gjarms
2 Replies
8. Shell Programming and Scripting
I came across and unexpected behavior with redirections in tcsh. I know, csh is not best for redirections, but I'd like to understand what is happening here.
I have following script (called out_to_streams.csh):
#!/bin/tcsh -f
echo Redirected to STDOUT > /dev/stdout
echo Redirected to... (2 Replies)
Discussion started by: marcink
2 Replies
9. UNIX for Dummies Questions & Answers
Hi guys,
Been messing around with shell programming for a couple of days and I found something that was pretty odd in the behavior of the echo command. Below is an example-:
When I type the following in my /home directory from my lxterminal in Debian-:
echo "`ls -l`"
I get the... (2 Replies)
Discussion started by: sreyan32
2 Replies
10. UNIX for Beginners Questions & Answers
what happens when I echo asterisk?
Please don't hijack other peoples' thread; post our own new one as required by forum rules! (5 Replies)
Discussion started by: ithenr00
5 Replies
ZNOL(1) General Commands Manual ZNOL(1)
NAME
znol - notify via Zephyr upon login or logout of interesting people
SYNOPSIS
znol [ on|off ] [ -f file ] [ -u username ] [ -l ] [ -q ]
DESCRIPTION
Znol provides a way for you to be notified when "interesting" people log in or out. It uses the Zephyr(1) Notification Service, which
causes a message to appear on your screen for every person specified in a namelist (which defaults to $HOME/.anyone). The namelist should
have one login name per line. Any line starting with `#' is considered a comment and ignored. Anyone in the namelist who is logged in
when znol is executed is printed to stdout. The control arguments are as follows:
on|off Turns notification on or off.
-f The namelist file is taken to be file. If file is "-", then the standard input is used instead of a file. If file does not
exist, an error message is printed, and znol exits. This option may not be used in conjunction with the -u option.
-l Causes znol to just list the people in the namelist who are currently logged in, without subscribing to the login messages.
This option may not be used in conjunction with the -q option.
-q Disables printing who is currently logged in when subscribing. This option may not be used in conjunction with the -l option.
-u Instead of reading a file to specify the "interesting" users, the next argument is used as the only "interesting" user. This
option may not be used in conjunction with the -f option.
EXAMPLES
znol
reads the standard namelist file, prints the locations of any users named therein which can be found on the system, and enters subscrip-
tions for notices about those users.
znol -l -u foo
prints the location (if visible) of the user 'foo'.
FILES
$HOME/.anyone
SEE ALSO
anyone(SIPB), nol(SIPB), zctl(1), zephyr(1), zwgc(1), zhm(8), zephyrd(8)
Project Athena Technical Plan Section E.4.1, `Zephyr Notification Service'
AUTHOR
Robert S. French (MIT-Project Athena)
RESTRICTIONS
Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. All Rights Reserved.
zephyr(1) specifies the terms and conditions for redistribution.
MIT Project Athena July 1, 1988 ZNOL(1)