10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi Everyone,
my script was running Ok, but suddenly it started giving this error.
./update_env_bi.sh: line 54: syntax error near unexpected token `)'
./update_env_bi.sh: line 54: `sed -i "s/PORT=*1/PORT=$2/" repository.xml'
The line 54 has this code.
sed -i "s/PORT=*1/PORT=$2/"... (2 Replies)
Discussion started by: shajay12
2 Replies
2. Solaris
Dear all
can you give me command to show me last unexpected reboot time the date, month, and the year on solaris 10
i've tried
uptime
who-b
last reboot
but nothing give me the year last reboot only the date , month and time (6 Replies)
Discussion started by: gema.utama
6 Replies
3. Shell Programming and Scripting
Hello,
I have another problem with my script. Please accept my apologies, but I am really nooby in sh scripts. I am writing it for first time.
My script:
returned=`tail -50 SapLogs.log | grep -i "Error"`
echo $returned
if ; then
echo "There is no errors in the logs"
fi
And after... (10 Replies)
Discussion started by: jedzio
10 Replies
4. Shell Programming and Scripting
Hi All,
I am writing one script to automate one of the process and for that I am using below command at one line :
uncompress `cat tmp`
content in tmp file are :
/home/vas/aqbatch/newbatch/archive/output/RIM_GUIDEPRICE_AQ_02108.DAT.Z... (5 Replies)
Discussion started by: NirajThakar
5 Replies
5. Shell Programming and Scripting
My script is throwing the error 'Syntax error: redirection unexpected'
My line of code..
cat nsstatustest.html | sed s/<tr><td align="left">/<tr><td align="left" bgcolor="#000000"><font color="white">/ > ztmp.Ps23zp2s.2-Fpps3-wmmm0dss3
HTML tags are getting in the way but they're needed to... (3 Replies)
Discussion started by: phpfreak
3 Replies
6. UNIX for Advanced & Expert Users
Hi,
please could someone advise the best command to shutdown and then for it to reboot back online again.
Note: I shall be doing this from a telent session.
regards
venhart (3 Replies)
Discussion started by: venhart
3 Replies
7. UNIX for Dummies Questions & Answers
./sample.5: syntax error: `(' unexpected
I get this error and Im trying to solve it but the line that it refering to is a notation so I don't understand why it is affecting the program. (2 Replies)
Discussion started by: helpme2008
2 Replies
8. UNIX for Dummies Questions & Answers
hi there
i write one awk script file in shell programing
the code is related to dd/mm/yy to month, day year format
but i get an error
please can anybody help me out in this problem ??????
i give my code here including error
awk `
# date-month -- convert mm/dd/yy to month day,... (2 Replies)
Discussion started by: Herry
2 Replies
9. Solaris
Hello,
Please can anyone tell me - is it true that you should not re-boot Unix Sun Solaris servers on a regular basis, but onyl do it when really required?
We want to schedule a reboot on a daily basis, to clear any rogue processes, but have been told this is not a good idea.
Can anyone... (13 Replies)
Discussion started by: polly013
13 Replies
10. UNIX for Dummies Questions & Answers
Hi
I'd like to know if to reboot a work station I need the root permission.
If not what is the procedure ( commands or steps ) to reboot a work station.
Cheers
Mohsen (5 Replies)
Discussion started by: mohsen
5 Replies