![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| script to locate servers | ibroxy | Shell Programming and Scripting | 5 | 05-30-2008 03:54 AM |
| 3 servers 1 .ksh script | cml2008 | UNIX for Dummies Questions & Answers | 2 | 01-20-2008 04:23 PM |
| csplit not behaving | badg3r | UNIX for Advanced & Expert Users | 2 | 05-25-2006 06:36 AM |
| Script behaving differently in Crontab.. | newtoxinu | Shell Programming and Scripting | 4 | 10-01-2004 01:22 PM |
| Script behaving differently in Crontab.. | newtoxinu | UNIX for Advanced & Expert Users | 1 | 09-30-2004 04:00 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Script behaving differently on two servers
All,
I have a script that runs on 2 servers and there seems to be something wrong. It's producing different results on the 2 servers. Here is the script on server1 which is behaving correctly but on 2 behaving differently. [QUOTE] Quote:
Quote:
|
|
||||
|
questions
What is the result you expect and what is the o/p you get? What are the input files like? And what errors, if any, do you get? Its very difficult to make a guess. What Unix runs on both servers?
|
|
||||
|
The script checks a file and then writes the data rows to the new file.
The file will be like this format Header Data Conut of data rows If the data rows equals the last row in the file which is Count of data rows then the script writes the data rows to a new file with .new extension appended to the original file. sample output in debug mode from the code2 which is having problem. The 1st code doesn't throw any error and it's working correctly. Quote:
The code on 1 runs on HP-UX and code on server 2 runs on SUNos |
|
||||
|
flavours of awk
You have different flavors of awk given by the HP & Sun. I havent worked on Sun OS but if you search this forum, there are similar issues encountered.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|