Search Results

Search: Posts Made By: bperl
2,967
Posted By bperl
ssh $serv_nme ls -t $d_loc/$wild_f_nme the...
ssh $serv_nme ls -t $d_loc/$wild_f_nme

the above command give me the file listings from the remote server just like any ssh command from the command prompt.
Question is how to capture the file...
2,967
Posted By bperl
ssh commands in Perl
I'm new to perl. I have a input file with pipe delimited lines which have server_name, and file names as fields. The file names have wild card (*) in the input feed file.
The actual file names will...
5,325
Posted By bperl
Thank you. Your solution seems to work without...
Thank you. Your solution seems to work without throwing any errors.
5,325
Posted By bperl
rollup and concat fields in a group
Hello,
I have a file with two fields in the following format..

NewYork|Rob
Boston|Mellisa
NewYork|Kevin
Boston|John
Chicago|Mike
Boston|Tom


My output should be:
NewYork|Rob,Kevin...
6,331
Posted By bperl
Thanks. I knew it could be done with ssh. But I...
Thanks. I knew it could be done with ssh. But I was wondering if there is any way (any command) to find out disk usage for different filesystems not mounted on the server that you're script is...
6,331
Posted By bperl
Calculate disk usage in different servers
Hello,
I'm writing a script to monitor different filesystems in multiple servers. And depending on the % free, my script will send an Alert email if % free is less than threshold.
I want to keep...
22,843
Posted By bperl
I should have mentioned it.... I've used both...
I should have mentioned it.... I've used both chomp($list_files[-1]) and chop($list_files[-1]). It doesn't seem to work.


my $f_nme=chomp($list_files[-1]);
print " last file name is $f_nme \n";...
22,843
Posted By bperl
Perl - New line in array elements
Hello,
I have a comma delimited input feed file. The first field has directory location and the second field has file name.
Ex of input feed:

/export/appl/a,abc*.dat
/export/appl/b,xyz*.dat...
2,483
Posted By bperl
any idea how to capture timestamps of files in...
any idea how to capture timestamps of files in different servers guys?
2,483
Posted By bperl
File timestamps in different servers.
Hello,
I need to gather timestamps and file sizes of all the list of files in different servers.
The servers and file locations will be different for each file.
I'm thinking of keeping a comman...
6,628
Posted By bperl
Our box has SunOS 5.8 Release. Anyways, I...
Our box has SunOS 5.8 Release.

Anyways, I have formatted it in a different way.

Thanks all for your help.
6,628
Posted By bperl
It says syntax error. I think with gsub you are...
It says syntax error.
I think with gsub you are trying to search and replace globally all matches of " " with new line. That too for records only with 'as_p'.

But since the records will be tab...
6,628
Posted By bperl
Format output using awk in script.
Guys,
I have a script which hits the database and pulls the information that I need into files. Now I want to format these files to make them easy to read.
The sample format of the file will be...
Showing results 1 to 13 of 13

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