script syntax different between LINUX 4.5 and 5.2

Forum Index » Forums » Programming and Development
Author Message
Joined: May 05, 2009
Posts: 2
Other Topics
Posted May 05, 2009 at 6:00:24 PM
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
Back to top Profile Email Website
Rubberman
Joined Jul 30, 2007
Posts: 944
Location:40 miles west of Chicago

Other Topics
Posted: May 06, 2009 11:38:36 PM
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!

Sometimes real fast is almost as good as real time. Remember, Google is your friend!

Back to top Profile Email Website AOL Instant Messenger
lang419
Joined May 05, 2009
Posts: 2

Other Topics
Posted: May 07, 2009 5:59:25 PM
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
Back to top Profile Email Website
Rubberman
Joined Jul 30, 2007
Posts: 944
Location:40 miles west of Chicago

Other Topics
Posted: May 09, 2009 5:47:59 AM
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.

Sometimes real fast is almost as good as real time. Remember, Google is your friend!

Back to top Profile Email Website AOL Instant Messenger
Forum Index » Forums » Programming and Development