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)
:)
Hi,
I want to script for this scenerio,
OSR Settings
Scenario : We are looking to find all the *.a files from the following locations in the filesystem of a server.
OSR Directories
/etc
/bin
/usr/bin
/usr/sbin
/var/adm
These *.a files should have the permissions on... (12 Replies)
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)
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)
Hi,
I am having a shell Script which i need to modify. I am new to shell scripting , needs help. The Logic which needs to be incorporated is as follows :-
The script need to check the length of first Line in a data fine and of the length of the file is > 130 then validated the input... (2 Replies)
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)
Hi,
I need to put two condition in if statement, but it is not working. Please suggest.
if
---------- Post updated at 07:05 AM ---------- Previous update was at 06:55 AM ----------
Also when i put below command in script it is not running, but manually it is running
... (4 Replies)
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)
Please see part of a shell script below.
#Move folder to HOT folder
echo " moving $PRE_OCR_DIR/$BATCHNAME to $HOT_FOLDER_DIR\n"
#chmod -R 777 $PRE_OCR_DIR/$BATCHNAME
mv $PRE_OCR_DIR/$BATCHNAME $HOT_FOLDER_DIR
I wish to write an if statement around the move
that if that if $BATCHNAME... (3 Replies)
Discussion started by: worky
3 Replies
LEARN ABOUT V7
prof
PROF(1) General Commands Manual PROF(1)NAME
prof - display profile data
SYNOPSIS
prof [ -v ] [ -a ] [ -l ] [ -low [ -high ] ] [ file ]
DESCRIPTION
Prof interprets the file mon.out produced by the monitor subroutine. Under default modes, the symbol table in the named object file (a.out
default) is read and correlated with the mon.out profile file. For each external symbol, the percentage of time spent executing between
that symbol and the next is printed (in decreasing order), together with the number of times that routine was called and the number of mil-
liseconds per call.
If the -a option is used, all symbols are reported rather than just external symbols. If the -l option is used, the output is listed by
symbol value rather than decreasing percentage.
If the -v option is used, all printing is suppressed and a graphic version of the profile is produced on the standard output for display by
the plot(1) filters. The numbers low and high, by default 0 and 100, cause a selected percentage of the profile to be plotted with accord-
ingly higher resolution.
In order for the number of calls to a routine to be tallied, the -p option of cc must have been given when the file containing the routine
was compiled. This option also arranges for the mon.out file to be produced automatically.
FILES
mon.out for profile
a.out for namelist
SEE ALSO monitor(3), profil(2), cc(1), plot(1)BUGS
Beware of quantization errors.
PROF(1)