03-20-2009
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm new to scripting and I need help with a bourn shell script. What i'm trying to do is a test condition where "if the time is within 2 hours, it's true" and so on.
The time is in the following format
DATE=`/bin/date +"%Y%m%d%H%S"`
for example, 20060907152000.
So, what the script first... (9 Replies)
Discussion started by: pieman8080
9 Replies
2. Shell Programming and Scripting
Hi
I am writing a script file which sends the log files along with their size in a folder named log to a file called temp.log using the following cmd:
ls -st 190_GSTV_HUX_003QISCGSK026** >> /home/user/temp.log
the temp.log looks like this:
16 190_GSTV_HUX_003QISCGSK026_message070321.log
... (11 Replies)
Discussion started by: kiran1112
11 Replies
3. AIX
True if file exists and has been modified since it was last read.
if
then
command
else
exit
fi
i am on AIX5.3-10. it does not understand -N
any other way.
i can use -ot (file1 is older than file2), but prefer -N if possible. (3 Replies)
Discussion started by: tjmannonline
3 Replies
4. Shell Programming and Scripting
Hi,
I want to check a particular string inserted by User to be checked against the values i already have in a ARRAY string using IF condition. Is this possible? if yes how to do that.
example :
i have a,b,c,d,e,f values in a array called values
i asked user to enter a value:
user entered... (2 Replies)
Discussion started by: kukretiabhi13
2 Replies
5. Shell Programming and Scripting
I want to make a script that check for the argument passed to it and generates an error in case any character/string argument passed to it.
I am using below code, but its not working. can anyone help.
#!/bin/bash
if ]; then
echo 'An integer argument is passed to the script hence... (3 Replies)
Discussion started by: mukulverma2408
3 Replies
6. Shell Programming and Scripting
Hello All,
i am facing difficulty in validating the values,
kindly help me in resolving the issue.
Thanks a lot in advance.
-Chandra
Script:Test.sh
#! /bin/sh
# ***************************************************************************
# Function to display help
function usage()... (1 Reply)
Discussion started by: duddukuri
1 Replies
7. UNIX for Dummies Questions & Answers
while
do
if ;then
read driverName
else
driverName=""
fi
done
can anyone please explain what exactly is happening on 1st line...is it like the conditions being ORed...I have no clue about this. (4 Replies)
Discussion started by: rtagarra
4 Replies
8. Shell Programming and Scripting
I want to check if the string has the substring in IF condition then process...
i tried below but not working
if ];
then
.............
field can be "reserved1" ....reservedn / fillspaces1 ... fillspacesn (4 Replies)
Discussion started by: greenworld123
4 Replies
9. Shell Programming and Scripting
Hi Team,
I m very new to shell scripting , i want to add following condition in my script .
Can anybody help me.
There are three port in My node "$port"
port_A
port_B
port_C
I Want to add following Conditions in my script.
If Node is connected to port_A and port_B script... (10 Replies)
Discussion started by: Ganesh Mankar
10 Replies
10. Shell Programming and Scripting
Hi all
I have the folloing process that needs checking often:
ps -ef | grep ih
bscsrtx 206 15901 0 11:28:10 pts/6 0:00 fih -r4
bscsrtx 218 15901 0 11:28:27 pts/6 0:01 aih
bscsrtx 29763 15901 4 11:27:16 pts/6 0:59 rdh -prih
root 429 27268 0 11:30:15 pts/td ... (13 Replies)
Discussion started by: fretagi
13 Replies
PINKY(1) User Commands PINKY(1)
NAME
pinky - lightweight finger
SYNOPSIS
pinky [OPTION]... [USER]...
DESCRIPTION
-l produce long format output for the specified USERs
-b omit the user's home directory and shell in long format
-h omit the user's project file in long format
-p omit the user's plan file in long format
-s do short format output, this is the default
-f omit the line of column headings in short format
-w omit the user's full name in short format
-i omit the user's full name and remote host in short format
-q omit the user's full name, remote host and idle time in short format
--help display this help and exit
--version
output version information and exit
A lightweight `finger' program; print user information. The utmp file will be /var/run/utmp.
AUTHOR
Written by Joseph Arceneaux, David MacKenzie, and Kaveh Ghazi.
REPORTING BUGS
Report pinky bugs to bug-coreutils@gnu.org
GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
General help using GNU software: <http://www.gnu.org/gethelp/>
COPYRIGHT
Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for pinky is maintained as a Texinfo manual. If the info and pinky programs are properly installed at your site,
the command
info coreutils 'pinky invocation'
should give you access to the complete manual.
GNU coreutils 7.1 July 2010 PINKY(1)