Operating System - HP-UX
1832757 Members
3002 Online
110045 Solutions
New Discussion

LVMcollect script from Steven Burgess

 
SOLVED
Go to solution
John Jimenez_2
Occasional Advisor

LVMcollect script from Steven Burgess

I tried to run this script and it bombed off on line 487 ( a line that has only a "| \". I think because when a saved it on my hard disk as a text file and then ftp'd it over to my test server it inserted carriage return. I have not been able to get that copy w/o these carriage returns
Do not worry about where you are at in your life right now, as long as you moved a little in the right direction from yesterday to today, and am moving in the right direction today for tomorrow.
9 REPLIES 9
Sanjay_6
Honored Contributor

Re: LVMcollect script from Steven Burgess

Hi John,

Try this,

cat old_script |col -b > new_script

Now run the new_script.

Hope this helps.

Regds
harry d brown jr
Honored Contributor

Re: LVMcollect script from Steven Burgess

John,

the "|" means pipe the output of the previous command to the next.

The "\" means that the next command, or continuation of the current command line, is on the next line. This is not put in there by ftp or anything else.

of course you can use dos2ux on it if you think there are "^M"'s in the file.


live free or die
harry
Live Free or Die
Sanjay_6
Honored Contributor

Re: LVMcollect script from Steven Burgess

Hi John,

You can also try,

/usr/bin/dos2ux old_script >new_script

Then run the new_script.

Hope this helps.

Regds
John Jimenez_2
Occasional Advisor

Re: LVMcollect script from Steven Burgess

Thanks guys for the info and lesson. I will give it a try...
Do not worry about where you are at in your life right now, as long as you moved a little in the right direction from yesterday to today, and am moving in the right direction today for tomorrow.
Darrell Allen
Honored Contributor

Re: LVMcollect script from Steven Burgess

Hi John,

To avoid problems caused by the difference in how UNIX and DOS terminate lines in text files (UNIX uses a newline, DOS uses a linefeed and carriage return), always use ascii mode to ftp text files between your PC and UNIX.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
John Jimenez_2
Occasional Advisor

Re: LVMcollect script from Steven Burgess

No, The dos2ux did not work. Can you guys get this script to run on you machines
Do not worry about where you are at in your life right now, as long as you moved a little in the right direction from yesterday to today, and am moving in the right direction today for tomorrow.
Sandip Ghosh
Honored Contributor
Solution

Re: LVMcollect script from Steven Burgess

Yes I am having that script and it is running fing. Send me your email address. I will send it to you.

Sandip
sghosh@barrlabs.com
Good Luck!!!
Patrick Wallek
Honored Contributor

Re: LVMcollect script from Steven Burgess

There were LOTS of lines that had a CR/LF where there shouldn't have been one. I've cleaned up my copy and it is attached here. Hopefully it stays cleaned up.

I did check this and it did run successfully.
John Jimenez_2
Occasional Advisor

Re: LVMcollect script from Steven Burgess

Thanks Sandip and Patrick it works super now :)
Do not worry about where you are at in your life right now, as long as you moved a little in the right direction from yesterday to today, and am moving in the right direction today for tomorrow.