Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Ux2dos script

HP-UX


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 01-20-2017
cero cero is offline
Registered User
 
Join Date: Aug 2006
Last Activity: 25 September 2017, 10:45 AM EDT
Posts: 458
Thanks: 4
Thanked 100 Times in 92 Posts
Quote:
Originally Posted by rbatte1 View Post
We are all here to learn from each other, not just to be a free script writing service.
...
There is no point in spoon feeding you an answer that you do not understand and cannot support when you need to adjust it in the future.
...
So now you're in the situation Robin (rbatte1) warned you about.
What have you tried so far to find the cause? Did you see any diagnostic message when you ran the script? What was the return code? Does it work if you do what the script is supposed to do by hand for one file?
The Following User Says Thank You to cero For This Useful Post:
rbatte1 (01-20-2017)
Sponsored Links
    #9  
Old Unix and Linux 01-20-2017
lcclaj0 lcclaj0 is offline
Registered User
 
Join Date: Oct 2015
Last Activity: 20 January 2017, 6:54 AM EST
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by cero View Post
So now you're in the situation Robin (rbatte1) warned you about.
What have you tried so far to find the cause? Did you see any diagnostic message when you ran the script? What was the return code? Does it work if you do what the script is supposed to do by hand for one file?
I have tried running sed 's/$/\r/' < input.txt > output.txt ux2dos also

The script runs ok no errors and the file gets placed in the Output Directory like it is supposed to do. I have tried opening the file in word and Notepad but it is still messed up in unix format.

Last edited by rbatte1; 01-20-2017 at 07:11 AM.. Reason: Added ICODE tags
Sponsored Links
    #10  
Old Unix and Linux 01-20-2017
RudiC RudiC is online now Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 25 September 2017, 1:02 PM EDT
Location: Aachen, Germany
Posts: 11,374
Thanks: 299
Thanked 3,527 Times in 3,244 Posts
Quote:
Originally Posted by lcclaj0 View Post
I have tried running sed 's/$/\r/' < input.txt > output.txt ux2dos also
.
.
.
WHAT exactly do you expect sed 's/$/\r/' < input.txt > output.txt ux2dos to do? I think it's time now to dive into a detailed analysis of every single step and its results.

Last edited by rbatte1; 01-20-2017 at 07:12 AM.. Reason: Retro-fitted ICODE tags to quote after updating original
    #11  
Old Unix and Linux 01-20-2017
lcclaj0 lcclaj0 is offline
Registered User
 
Join Date: Oct 2015
Last Activity: 20 January 2017, 6:54 AM EST
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by RudiC View Post
WHAT exactly do you expect sed 's/$/\r/' < input.txt > output.txt ux2dos to do? I think it's time now to dive into a detailed analysis of every single step and its results.
I thought that this would convert the UNIX format text file called input.txt to DOS format, writing the result to a file called output.txt.
Sponsored Links
    #12  
Old Unix and Linux 01-20-2017
RudiC RudiC is online now Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 25 September 2017, 1:02 PM EDT
Location: Aachen, Germany
Posts: 11,374
Thanks: 299
Thanked 3,527 Times in 3,244 Posts
So ... ?

Please be aware that YOU are sitting in the driver seat, nobody else can see what you see on the terminal nor control what you control. I F you want decent help, provide decent information - in this case that might be the results of the conversion steps, or the test steps as proposed by cero in post#8.

AND - read complete suggestions, to their entirety, AND answer ALL questions!
The Following User Says Thank You to RudiC For This Useful Post:
rbatte1 (01-20-2017)
Sponsored Links
    #13  
Old Unix and Linux 01-20-2017
lcclaj0 lcclaj0 is offline
Registered User
 
Join Date: Oct 2015
Last Activity: 20 January 2017, 6:54 AM EST
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by RudiC View Post
So ... ?

Please be aware that YOU are sitting in the driver seat, nobody else can see what you see on the terminal nor control what you control. I F you want decent help, provide decent information - in this case that might be the results of the conversion steps, or the test steps as proposed by cero in post#8.

AND - read complete suggestions, to their entirety, AND answer ALL questions!

So.... it goes through also but same result as the script.. Puzzled at the moment
Sponsored Links
    #14  
Old Unix and Linux 01-20-2017
rbatte1 rbatte1 is online now Forum Staff  
Root armed
 
Join Date: Jun 2007
Last Activity: 25 September 2017, 12:49 PM EDT
Location: Lancashire, UK
Posts: 3,261
Thanks: 1,392
Thanked 630 Times in 569 Posts
Well, please show us your input, commands and output/errors. Please wrap them in CODE tags for clarity and to preserve spacing, which is important for indenting or fixed-width data.

Just saying it's gone wrong is like ringing up the local mechanic to say that your car has a problem and asking them to diagnose over the phone. Could it be flat battery, wrong key, flat tyre, out of fuel, damage/vandalism etc.

If you don't show us/tell us clearly, how will they know you have a broken bulb?



Robin
The Following User Says Thank You to rbatte1 For This Useful Post:
wisecracker (02-13-2017)
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Calling a script from master script to get value from called script Raj Roy UNIX for Dummies Questions & Answers 2 03-14-2014 11:29 AM
Script will keep checking running status of another script and also restart called script at night ketanraut Shell Programming and Scripting 1 11-20-2013 09:41 AM
create a shell script that calls another script and and an awk script magikminox Shell Programming and Scripting 0 06-26-2008 02:50 AM
ux2dos zapper222 UNIX for Dummies Questions & Answers 4 05-04-2008 07:18 PM



All times are GMT -4. The time now is 01:05 PM.