Search Results

Search: Posts Made By: nathan.harris
8,699
Posted By nathan.harris
Hi there Thank you for the help on this...
Hi there

Thank you for the help on this one, This is the output you requested

$ pgrep -f "gcalctool"
9467
9486
13903
$ cd /proc
$ ls -ld 9467
dr-xr-xr-x 8 nathan nathan 0 2012-05-04...
8,699
Posted By nathan.harris
On the inst yes it needs to compare, you see when...
On the inst yes it needs to compare, you see when Jboss starts it writes a new log file with the date and timestamp when its was started.

If we can compare these with the PID date and time then...
8,699
Posted By nathan.harris
Hi there Its running in ksh, is it possible...
Hi there

Its running in ksh, is it possible to do what I am asking?

cheers
8,699
Posted By nathan.harris
Comparing multiple variable in if statement
Hi there

this script is an atempt to define which instances of Jboss relate to its PID by the date and timestamp I am using calc to test with. On our system the only way you can tell which...
1,904
Posted By nathan.harris
Thank you that works a treat! very much...
Thank you that works a treat! very much appreciatted
1,904
Posted By nathan.harris
EVAL syntax problems
Hi there

As part of a larger script I need to put the output of an ls into a variable which has an incremental number.

ie

nathan@nathan-Vostro-1700:~$ eval 'proc'$val='`ls -ld...
1,363
Posted By nathan.harris
Back to my original issue, just forget the loop...
Back to my original issue, just forget the loop for now

just can't get proc$val to equal the output from `ls -ld /proc/${array[$val]}`

I found the following did work

eval...
1,363
Posted By nathan.harris
Hi thanks for the reply just tried in ksh...
Hi thanks for the reply

just tried in ksh enviroment
$proc$val="$(ls -ld /proc/9467)"
Error
ksh: proc0=dr-xr-xr-x 8 nathan nathan 0 2012-04-27 08:09 /proc/9467: not found [ no such file or...
1,363
Posted By nathan.harris
Problems with variables syntax
Hi there

I am really struggling :eek: to place a value in a variable with the following loop, having run out of ideas please can someone point me in the right direction?

We first read two...
Showing results 1 to 9 of 9

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