Search Results

Search: Posts Made By: gsprasanna
13,180
Posted By gsprasanna
Thanks much Otheus It works fine.... Thank...
Thanks much Otheus

It works fine.... Thank you once again.
13,180
Posted By gsprasanna
Net::SSH::Perl->Execute any unix command & display the output in a proper form
Net::SSH::Perl ...... how to print the output in a proper format

my $cmd = "ls -l";
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) =...
10,064
Posted By gsprasanna
Though at present i am having a solution where we...
Though at present i am having a solution where we can split the output of 'ls' command as the output will be of this format ...

-rw-rw-rw- 1 root dir 104 Dec 25 19:32 filename

we can split...
10,064
Posted By gsprasanna
Yes, you are right which is expected. But i...
Yes, you are right which is expected.

But i am looking for some way/solution where we can print the output as if executing a command in a unix box displays the output in a clear format. At...
10,064
Posted By gsprasanna
Also if i replace last two lines of code as , ...
Also if i replace last two lines of code as ,
my(@stdout, $stderr, $exit) = $ssh->cmd("$cmd");
print @stdout;

i see no difference between $stdout & @stdout outputs.
10,064
Posted By gsprasanna
As i tried replacing last line with print...
As i tried replacing last line with print ref($stdout); displays a blank output (i.e no output)
10,064
Posted By gsprasanna
Net::SSH::Perl ...... how to print the output in a proper format
Hi Guys,

my $cmd = "ls -l"; #........ {or let it be as # my $cmd= "ls"; }
my $ssh = Net::SSH::Perl->new($host);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) =...
1,870
Posted By gsprasanna
Dynamic time to append for every log info
Hi All,


What i am looking for:
i want to generate a dynamic system time for each and every data(line) which goes on generating data continously....

now i am using this script to append a...
4,599
Posted By gsprasanna
Hi Anbu, Thanks for your help, i got the...
Hi Anbu,
Thanks for your help,
i got the solution why the script is not executing ,because i am executing the script in tcsh so it displays as illegal error,

so i changed to sh and tried to...
4,599
Posted By gsprasanna
Hi Anbu, Thanks for your help, i got the...
Hi Anbu,
Thanks for your help,
i got the solution why the script is not executing ,because i am executing the script in tcsh so it displays as illegal error,

so i changed to sh and tried to...
4,599
Posted By gsprasanna
Hi anbu23 (will u let me know ur name) i am...
Hi anbu23 (will u let me know ur name)

i am prasanna kumar from bangalore

i executed the script
awk -v var="$( date +%H":"%M":"%S" "%Y )" ' !/parallel nursery GC/ && /GC/ { $0=$0 " " var } ;...
4,599
Posted By gsprasanna
also it will be better if u explain ur script, ...
also it will be better if u explain ur script,
as i am not much familiar with awk script
4,599
Posted By gsprasanna
awk -v var="23:19:32 2007" ' !/parallel nursery...
awk -v var="23:19:32 2007" ' !/parallel nursery GC/ && /GC/ { $0=$0 " " var } ; 1' filename

here in place of 23:19:32 2007 it should be replaced by system time
that is by making use of date...
4,599
Posted By gsprasanna
i had written a script , tail -f...
i had written a script ,

tail -f /filers/f08-perf01/logFiles/wcluster/websites01-perf-1-8901/NodeManagerLogs/cobaltgroup_websites01-perf-1-8901/websites01-perf-1-8901_error.log |grep -v nursery >...
4,599
Posted By gsprasanna
[INFO ][memory ] 4634.298: parallel nursery GC...
[INFO ][memory ] 4634.298: parallel nursery GC 2964037K->2915007K (2969600K), 44.723 ms
[INFO ][memory ] 4642.754-4644.124: GC 2969600K->745408K (2969600K), 1369.515 ms
[INFO ][memory ] 4657.312:...
4,599
Posted By gsprasanna
Shell script to append a time for the existing error log file
Hi Guys,

the requirement is like this,
i am having a error log file in this format,


[INFO ][memory ] 4594.493: parallel nursery GC 2594592K->2544691K (2969600K), 30.848 ms
[INFO ][memory ]...
Showing results 1 to 16 of 16

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