Search Results

Search: Posts Made By: asnatlas
4,240
Posted By asnatlas
I double checked and this is a part of the output...
I double checked and this is a part of the output file:


SERVER1
RC_Script_1 0:off 1:off 2:off 3:on 4:off 5:off 6:off
...
4,240
Posted By asnatlas
That did not seem to work :( In my script I...
That did not seem to work :(

In my script I have done | tee -a ${logfile} at the end. I tried running the above after commenting out the logfile. I get the following back:

,, etc862...
4,240
Posted By asnatlas
Script to create a CSV file
I created a script that will go out and so a "/sbin/chkconfig --list | egrep XXX" against a server list that would create an output file like the following example:
...
9,628
Posted By asnatlas
Anyone ??
Anyone ??
9,628
Posted By asnatlas
I think I know what I did... I split this into...
I think I know what I did... I split this into two scripts, one to create the new.list then another to scp the files down and rename them. When I was testing out the first one to ssh I was getting...
9,628
Posted By asnatlas
Hmm very odd... I have only used vi to edit the...
Hmm very odd... I have only used vi to edit the file.

BEFORE:
new.list: ASCII text, with CRLF line terminators

I ran dos2unix on the file (new.list: ASCII text)

I am still getting :


...
9,628
Posted By asnatlas
I double checked and saved the original new.list...
I double checked and saved the original new.list to new.list-backup. I removed all but 15 lines (no blank lines or spaces):

server1.domain.net:/path/path/path/filename...
9,628
Posted By asnatlas
Very odd... When I tested this out on Jan 15th it...
Very odd... When I tested this out on Jan 15th it worked just fine... I try to run it today and I get the following error:

scp: ambiguous target

When I check the cmd it appears to be adding a :...
9,628
Posted By asnatlas
THANK YOU VERY MUCH Chubler_XL I had to add...
THANK YOU VERY MUCH Chubler_XL

I had to add " " around the $server:$filepath for some reason.

OLDIFS=$IFS
IFS=":"
while read server filepath
do
scp "$server:$filepath"...
9,628
Posted By asnatlas
[SOLVED] - Copy down remote files and rename them to include the server name with full path
I need to pull down a good bit of files for another support team for an upgrade project. I have a server.list with all of the server names.

I need to do two parts:

FIRST:
I have this example,...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 03:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy