10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
Thanks for reviewing my question.
I have a sh script where I used an environmental variable for the directory for the file I need to check to ensure before executing a process.
I have confirmed the permissions and I can find the file if I use a hard coding of the directory. This is a... (5 Replies)
Discussion started by: rstojkovic68
5 Replies
2. Shell Programming and Scripting
Hello,
I need to make shell script menu for my end users. There is like 100 scripts in system, and they need to run that scripts true one main script with user friendly menu.
Example, when user will run main menu script, it will get something like this on his screen:... (1 Reply)
Discussion started by: waso
1 Replies
3. Shell Programming and Scripting
Hello,
Ubuntu server 11.10
can anybody help what is problem with my shell script?
#!/bin/bash
#script to find out currently logged on user is root or not.
if ]
then
echo "You are super"
else
echo "You are awesome!"
fi
When I run script, I get following output
./uid: line 3:
I... (4 Replies)
Discussion started by: kaustubh
4 Replies
4. Shell Programming and Scripting
Hello,
I need to make shell script menu for my end users. There is like 100 scripts in system, and they need to run that scripts true one main script with user friendly menu.
Example, when user will run main menu script, it will get something like this on his screen:... (3 Replies)
Discussion started by: waso
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a line in my script: fgrep "BancoPosta" /var/spool/postfix/deferred/*/* > /root/spulk.italiantmp1
It does NOT seem to excute. But when I run it on command line it does. Any ideas how to fix the problem? (1 Reply)
Discussion started by: mojoman
1 Replies
6. Shell Programming and Scripting
dialog --title "Inputbox - To take input from you" --backtitle "Linux Shell\
Script Tutorial" --inputbox "Enter your name please" 8 60 2>/tmp/input.$$
sel=$?
na=`cat /tmp/input.$$`
case $sel in
0) echo "Hello $na" ;;
1) echo "Cancel is Press" ;;
255) echo " key pressed" ;;
... (7 Replies)
Discussion started by: cola
7 Replies
7. Shell Programming and Scripting
hi,,
i have perl scipt with line :
system('./try.sh $t $d $m');
in shell scipt try.sh i have the line:
echo $1
its not printing value of $t that i hav passed..y is it so..i am running it from apache web server (2 Replies)
Discussion started by: raksha.s
2 Replies
8. Shell Programming and Scripting
Default shell is /usr/bin/zsh
Script will be running #!/bin/bash
Need to pull information from database while using other scripts already made (not by me).
Ok, so i need a script pulling certain information about a customer's router interfaces.
I am using a ROUTER-DNS-NAME as variable $1
I... (3 Replies)
Discussion started by: ///NNM
3 Replies
9. UNIX for Dummies Questions & Answers
hi all.
im using the awk command to search a file for a matching number.
lets say the numbers in the file are 4588281, 4588282 and 4588283.
my problem is when i search for 8, the three numbers above appear. I want to have it so that if i search for any number that is not matching EXACTLY... (2 Replies)
Discussion started by: djt0506
2 Replies
10. UNIX for Advanced & Expert Users
Hi,
I have a shell script problem. I'm using /bin/ksh and I have a script that reads a number of table names from a file adn then for each table name, it creates the table in Oracle8i via sqlplus,
The main sceleton looks something like:
while read tab_name
do
# BODY
done <... (10 Replies)
Discussion started by: strpeski
10 Replies