10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
hi every body
this is my first thread in this forum, i hope find a solution for my problem
i have to write a script bt i still have some error and i don't know how to correct them
$ for i in `seq 500 505`; do ./generateur_tache $i tache$i.txt; nprocs=$i; copt$i=`cat tache$i.txt | ./copt.awk` ;... (10 Replies)
Discussion started by: ordo_ordo
10 Replies
3. UNIX for Advanced & Expert Users
Hello,
I want to create a shell script that would check the file "/etc/default/kbd" for the entry KEYBOARD_ABORT=alternate on a list of SUN Solaris servers.
If this entry is not uncommented (without #) then I should get a message/error report for the host which does not have the setting... (3 Replies)
Discussion started by: mahive
3 Replies
4. Shell Programming and Scripting
Hello. I am trying to make this shell script bellow work on my server wich should take the names in newacc.cvs and add them to the system. For each user the script should ask me to enter a password for the user im adding and then add them to the system, however my current solution do not work atm... (7 Replies)
Discussion started by: ryzzaze
7 Replies
5. 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
6. Shell Programming and Scripting
Hi ,
I am New to unix shell scripting.
So can anybody help me.
How to write shell script in sun solaris ?
How to run/execute the script ?
please post in details. (1 Reply)
Discussion started by: deb.simply
1 Replies
7. Shell Programming and Scripting
HOSTNAME=`uname -n`
/usr/sbin/clinfo
CLUSTERACTIVE=$?
# First check whether the Cluster itself is active
if
then
echo Cluster is NOT ACTIVE - EXITING
exit 1
fi
# Now check whether we are on the active Cluster Node for this Resource Group... (2 Replies)
Discussion started by: babu.knb
2 Replies
8. Shell Programming and Scripting
I have one file list.fdict which contains recordname and its details.
like :
NAME1:25:C:NAME LINE1:
NAME2:25:C:NAME LINE2:
CITY:25:C:City:
STATE:2:C:State:
ZIPCODE:5:N:ZIPCODE:
PHONE1:12:C:HOME PHONE:
PHONE2:12:C:BUSINESS PHONE:
I want to append news records(22 different records line)... (3 Replies)
Discussion started by: amitpansuria
3 Replies
9. Shell Programming and Scripting
hi! i have the script which i hit error. anyone knows whats wrong? i have been trying for the last 3 days and don't seems to be able to find an answer.
the error i got was sp_out.sh: syntax error at line 51 : `<<' unmatched. However when i move the FTP portion of the script out of the If... (7 Replies)
Discussion started by: pektl
7 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