script syntax different between LINUX 4.5 and 5.2
|
Author |
Message |
|
|
Posted : Tue, 05 May 2009 18:00:24
Subject :
script syntax different between LINUX 4.5 and 5.2
Dear all;
Good day.
Can you please advice, any syntax command / code change for script writing between LINUX 4.5 and 5.2?
So far what i know are:
1. "echo" changed to "echo -e"
2. there is no tail +8 but only tail -8 in 5.2 but 4.5 is working fine with both command
3. ??????
4. ?????
Your prompt feedback is highly appreciated.
Many thanks and best regards
|
|
|
|
Rubberman
|
Posted : Wed, 06 May 2009 23:38:36
Subject :
script syntax different between LINUX 4.5 and 5.2
What Linux distribution are you referring to, RHEL, or something else? If you mean bash scripts, the chances are that no changes are required. However, as you have found, in your case, the commands 'echo' and 'tail' behave differently. These are not shell commands, but are system commands (/bin/echo, /usr/bin/tail most likely) that are called in your scripts. Caveat User!
|
|
lang419
|
Posted : Thu, 07 May 2009 17:59:25
Subject :
Re: script syntax different between LINUX 4.5 and 5.2
im using rhel 5.2.
the issue is i done the scripting in 4.5 but installed to 5.2 and now that 2 command doesnt' works, and i don't know what other command also will get impacted. so, i seriously asking around and see who is the expert can help me to solve my problem. Can you please help me to identify the syntax / code changes ? or, is there any patch i can apply?
many thanks and your prompt feedback is highly appreciated
|
|
Rubberman
|
Posted : Sat, 09 May 2009 05:47:59
Subject :
script syntax different between LINUX 4.5 and 5.2
Post your question on www.linuxforums.com - this forum is undergoing a complete redo so it isn't visited much at the moment. There is a RedHat/Fedora specific forum there where you can post your question and get answers from a number of experts who will likely help shed some light on your problem.
|