10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
first of all I thought the argument DONE is necessary for all scripts that have or begin with do statements which I have on my script, However, I still don't completely understand why I am receiving an error I tried adding another done argument statement but didn't do any good.
I appreciate... (3 Replies)
Discussion started by: wolf@=NK
3 Replies
2. Shell Programming and Scripting
Hi,
I am getting an wired error.... the script is running fine when i run it manually... but the same when i try to run in nohup mode, i am getting error
if
Error:
syntax error at line 24: `(' unexpected
The above if is the 24th line!!! I dont understand the error... (4 Replies)
Discussion started by: Nithz
4 Replies
3. Shell Programming and Scripting
Masters, i iam writing a script (dont have much experience in the process of learning) which handles file copy to multiple servers and users for deployment purpose. Below is the snippet.
When ever i run i get syntax error but it works fine on another machine. Please help me out.
if
then... (10 Replies)
Discussion started by: ameyrk
10 Replies
4. Shell Programming and Scripting
hi,
i need to with making while loop logic working in shell program, i got syntax error
the following Code and Error details:
x=60
while
do
/usr/bin/php /home/egrdemo/public_html/pposh_new/cron-set.php
x=$((x-1))
sleep 1
done
... (5 Replies)
Discussion started by: kannankrp
5 Replies
5. UNIX for Dummies Questions & Answers
Hi
I am having a shell script load_data.sh which calls /home/users/project/.profile. When am executing the script, am getting below error:
$sh -x bin/load_data.sh null
+ . /home/users/project/.profile
bin/load_data.sh: syntax error at line 8: `(' unexpected
The line which is throwing... (1 Reply)
Discussion started by: brijesh.dixit
1 Replies
6. Shell Programming and Scripting
Hi All,
I have written a korn script (code pasted below). It is giving the error while debugging "new.sh: syntax error at line 62: `end of file' unexpected".
I have re-written the whole code in VI and explored all help related to this error on this Unix forum and tried it. Somehow, I could... (7 Replies)
Discussion started by: schandrakar1
7 Replies
7. Shell Programming and Scripting
hi can anyone pls look into this....shell script...
Pls find the error below:
> sh -n tmp
tmp: syntax error at line 28: `(' unexpected
isql -Usa -S$1 -P`grep $1 dbpassword|cut -d ":" -f3` -w2000 -b<<!
set nocount on
declare @i int
declare @dbname char(6)
declare @tmp int
if... (10 Replies)
Discussion started by: rajashekar.y
10 Replies
8. UNIX Desktop Questions & Answers
Hi All
I've used UNIX in the past experimenting with commands through terminal but thats about it. Im now currently teaching myself "C".
Using a book from the library, the first chapter asks you run and compile your program from a command-line prompt. As you will see the program is very simple,... (4 Replies)
Discussion started by: camzio
4 Replies
9. UNIX for Dummies Questions & Answers
#!/bin/sh
echo "Choose option: e, d, l, t, p, or x."
read option
if test $option = e
then
echo "Filename?"
read file
if test ! -f $file
then
echo "No such file"
else
echo "Yes its a file"
fi
... (4 Replies)
Discussion started by: hazy
4 Replies
10. Programming
I compiled C program under SUN OS sparcv9 ...I had a problem related to SIGBUS which has been resolved by adding an option to the CC compiler which is memory alignement option ..-memalign=1i as I remmber ...after running the program I got the below error please let me KNow more details what should... (2 Replies)
Discussion started by: atiato
2 Replies