10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
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"
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
4. Shell Programming and Scripting
I need to put two condition in if statement, but it is not working. Please suggest.
---------- 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)
Discussion started by: learnbash
5. UNIX for Dummies Questions & Answers
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
6. Shell Programming and Scripting
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)
Discussion started by: mvichare
7. Shell Programming and Scripting
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.
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
True if file exists and has been modified since it was last read.
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
9. Shell Programming and Scripting
I want to script for this scenerio,
Scenario : We are looking to find all the *.a files from the following locations in the filesystem of a server.
These *.a files should have the permissions on... (12 Replies)
Discussion started by: sakthilinux
10. 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
for example, 20060907152000.
So, what the script first... (9 Replies)
Discussion started by: pieman8080