Search Results

Search: Posts Made By: jal_capri
Forum: Programming 05-27-2010
5,080
Posted By jal_capri
Running Multiple Unix commands in qx
Hi All,

Is there anything wrong with below syntax?

qx {perldoc -v ModuleName.pm | grep -i Description }

BTW, this question is related to Perl.

Thanks.
39,114
Posted By jal_capri
$ vmstat procs memory ...
$ vmstat
procs memory swap io system cpu
r b swpd free buff cache si so bi bo in cs us sy id wa
0 0 0 10982104 232072...
39,114
Posted By jal_capri
OS: Red Hat Enterprise Linux AS release 3 ...
OS: Red Hat Enterprise Linux AS release 3
Shell: ksh
39,114
Posted By jal_capri
Finding total Percentage CPU usage
Hi,

How can I find total CPU usage in percentage? e.g. if my system has 8 CPUs and I want to list total usage for all of them, is it possible through a command?

I have tried some of the...
1,301
Posted By jal_capri
Thanks Tony. This is what I was looking for. Can...
Thanks Tony. This is what I was looking for. Can you please help me understanding -o "comm=" in below command?
1,301
Posted By jal_capri
This is a good solution. Thanks. However, I am...
This is a good solution. Thanks. However, I am looking for a solution where I don't have to change the parameters.
1,301
Posted By jal_capri
Do not allow a script to run individually
Hi All,

I am having two scripts say scriptA.ksh and scriptB.ksh.

The scriptB.ksh should be executed only if it is called from scriptA.ksh. If someone tries to execute it individually from...
27,075
Posted By jal_capri
Thanks thillai_selvan and karthigayan. The...
Thanks thillai_selvan and karthigayan.

The solution Rocks!!
27,075
Posted By jal_capri
Continuously display the file name in vim
Hi All,

In vim, when we press ^G, the file name is displayed at the bottom of the screen and as soon as we enter into some other mode (say e.g. Insert), the file name is replaced by the words...
4,287
Posted By jal_capri
Thanks for the reply Pludi. I have implemented...
Thanks for the reply Pludi. I have implemented the solution.
4,287
Posted By jal_capri
inbuilt nohup logic into the script
Hi All,

I know one way to use nohup as below:


nohup myscript.ksh


However, just wanted to know is there any way to write the nohup logic directly into the script so that we can execute...
6,719
Posted By jal_capri
Actually, this is not my intention. I just wanted...
Actually, this is not my intention. I just wanted to check whether redirecting the output of vim -d <file1> <file2> to some file, exports the output in plain text format or it adds some color code...
6,719
Posted By jal_capri
I wanted to run vim -d <file1> <file2> command...
I wanted to run vim -d <file1> <file2> command from a shell script. How can I do that?
6,719
Posted By jal_capri
Calling vim from shell script
Hi All,

I was looking to open a file using vim within shell script. Can someone please suggest a way/syntax for this?

Thanks in advance.
Forum: Red Hat 01-07-2010
18,460
Posted By jal_capri
Can you also paste the definition of job...
Can you also paste the definition of job "123558.p50.usdata0" ?
7,396
Posted By jal_capri
You can use jobs -l.
You can use jobs -l.
7,396
Posted By jal_capri
Which kind of jobs are you trying to look? Is it...
Which kind of jobs are you trying to look? Is it background/foreground job, autosys job, cron job ??
27,380
Posted By jal_capri
Thanks for the reply Scottn. What I am trying to...
Thanks for the reply Scottn. What I am trying to do is produce a colorful side-by-side difference between two files. and for that, I am parsing the output of diff command and therefore, it is very...
27,380
Posted By jal_capri
If I provide -W 250, I understand both the file's...
If I provide -W 250, I understand both the file's content will be adjusted in width of 125 characters, correct me if I am wrong. and if that's correct, then what about the files that have longer than...
27,380
Posted By jal_capri
As I mentioned, -W doesn't produce exact output...
As I mentioned, -W doesn't produce exact output as I want. I want to preserve the alignment of original file and hence, have to use -yt.
Forum: Red Hat 01-07-2010
18,460
Posted By jal_capri
Check you job definition. It should have Machine...
Check you job definition. It should have Machine attribute set to "sys56".
27,380
Posted By jal_capri
file1: This is the first sample line in my...
file1:
This is the first sample line in my file1, I want to see full content in the diff result.
file2:
This is the first sample line in my file2, I want to see full content in the diff result.
...
1,181
Posted By jal_capri
All the variables between " " are expanded to...
All the variables between " " are expanded to their values at runtime. However, if the same variable is put between ' ', it is considered a literal string.

e.g. var='Test'
echo "$var" --> Output:...
4,826
Posted By jal_capri
The problem is I can not modify the string "print...
The problem is I can not modify the string "print LOG \n". The echo has to be tweaked in some way.

does print command have any such provision? In that case, I can replace outer "echo" with print...
27,380
Posted By jal_capri
Show entire lines with diff command
Hi,

When I run the diff command using diff -yt file1 file2, I get the output in which original lines are truncated.

I tried using -W switch with diff. However, that does not produce exact...
Showing results 1 to 25 of 26

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