10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to check whether the directory is exist or not. only three letter will be passed as argument. from that it should pick the entire directory.
Instead of banking and manfucuture the input will be passed as man or ban.
$1 -> ban $2-> monday
#!/bin/sh
DIR='/sales/$1*/monday'
if ;... (3 Replies)
Discussion started by: arun888
3 Replies
2. Shell Programming and Scripting
In unix, does the file size present is In byte format ?
-rw-r-----+ 1 stck stck 20340713 Mar 3 10:11 C44444.STC.112
Can you you tell me how to filter the file size which should be less than the file size "20340713" one in particular directory. (3 Replies)
Discussion started by: ramkumar15
3 Replies
3. Homework & Coursework Questions
i am trying to write a script code in unix that will:
1. The problem statement, all variables and given/known data:
display following menu to user:
(A) Add
(B) Subtract
(C) Multiply
(D) Divide
(E) Modulus
(F) Exponentiation
(G) Exit
Then ask user for choice (A-F). After taking... (5 Replies)
Discussion started by: renegade755
5 Replies
4. Shell Programming and Scripting
I have the following script
=========
#!/bin/sh
MUTEXPREFIX="/tmp/"
READMUTEX=(test globallock)
# If mutexes found - exit out
for m in "${READMUTEX}"; do
|| (echo "$0 Mutex file found - Exiting\n" ; exit 1)
done;
echo "After for loop\n";
exit;=============
What i want... (8 Replies)
Discussion started by: GosarJunk
8 Replies
5. Shell Programming and Scripting
Hello,
I am a new Unix user and new to shell programming. I am working on a script to go through a log file and find the text error:
grep -i 'error' monplus.mplog
if I find the text error in the log file I would like to echo a message to the operator staing there is an error
I am currently... (2 Replies)
Discussion started by: dtracy01
2 Replies
6. Homework & Coursework Questions
This is a problem with basic Unix scripting. Thanks for looking!
1. The problem statement, all variables and given/known data:
Make a script that will compare 2 given directories and output those filenames that are in Directory 1 and not 2
2. Relevant commands, code, scripts, algorithms:... (1 Reply)
Discussion started by: iamhungry
1 Replies
7. Shell Programming and Scripting
This text and script is borrowed from the "Unix Horror Stories" document.
It states as follows
"""""Management told us to email a security notice to every user on the our system (at that time, around 3000 users). A certain novice administrator on our system wanted to do it, so I instructed... (5 Replies)
Discussion started by: scottsiddharth
5 Replies
8. UNIX for Dummies Questions & Answers
I tried looking for the answer online and came up with only a few semi-answers as to why file and directory names are case sensitive in Unix. Right off the bat, I'll say this doesn't bother me. But I run into tons of Windows and OpenVMS admins in my day job who go batty when they have to deal... (3 Replies)
Discussion started by: deckard
3 Replies
9. UNIX for Dummies Questions & Answers
I'm a verteran to Windows but i newbie to UNIX so i hope this isn't too dumb of a question. I have an HP 9000 D Class Server that has 10.2 and uses a console. The console died and i was told i can put a standard EISA video card in it and use a regualr monitor and keyboard. My question is how do i... (5 Replies)
Discussion started by: egress1
5 Replies
10. IP Networking
hi there i'm a new bie
just got few simple questions to ask.
I got expert in windows configuration but totally new to unix environment . I want to make sure a com port (com1) is working, so I connect a 9-pin cable (CB9) for both PC using Unix environment (unix to unix).
The question are (1)... (1 Reply)
Discussion started by: typsam
1 Replies