Search Results

Search: Posts Made By: giorgos193
Forum: Linux 03-04-2009
3,420
Posted By giorgos193
Save CPU and memory utilization over time
Hi,

I would like to view the cpu and memory utilization of a given job over time and save this information in a file, such that at the end of the process I can create a plot of the CPU and memory...
4,933
Posted By giorgos193
How could i enforce multiple option? Ok......
How could i enforce multiple option?

Ok... it seems to be too difficult for me.... I should probably give up on this...

I'll try to implement differently my code! Thanks a lot for your...
4,933
Posted By giorgos193
Thanks for your response! Yes, this makes...
Thanks for your response!

Yes, this makes sense... I tried before the double quotes and it worked... but I was wondering if there was a way to do this without the double quotes...

Thanks,...
4,933
Posted By giorgos193
Help with getopt
Hi,

I want to use the getopt function to parse some arguments for a script.

while getopts "i:f:r:" OPTION
do

case $OPTION in

i) iter=$OPTARG;;
f) frame=$OPTARG;;
r) ...
10,617
Posted By giorgos193
It worked perfectly! Thanks a lot! You've saved...
It worked perfectly! Thanks a lot! You've saved me a lot of time!!!
10,617
Posted By giorgos193
Thanks a lot! I'll test it at work and I'll let...
Thanks a lot! I'll test it at work and I'll let you know!!

Thank you both for your response!
10,617
Posted By giorgos193
Use sed or gsub command
Hi there,

I'm trying to write a bash script and I have some difficulties...

I have multiple files, which have the following names:
file_1.txt
file_2.txt
...
file_26.txt

Within each file...
6,595
Posted By giorgos193
I want to thank you all for you rapid response!...
I want to thank you all for you rapid response! All solutions are great! I really appreciate your effort!

@ era: I'm really impressed by your "sophisticated" solution!

Thanks again!!
6,595
Posted By giorgos193
Help with awk - read from file
Hi,

I've got a file like the following:


Starting to process segment 0 (and symmetry related segments)
Number of (cancelled) singularities: 0
Number of (cancelled) negative numerators: 0...
13,017
Posted By giorgos193
Actually, the \$VAR$i is what I need and...
Actually, the \$VAR$i is what I need and not just the $1, $2...

You got it this time!!!!!

But every time I want to call \$VAR$i I have to use eval???

for example : .... grep "eval...
13,017
Posted By giorgos193
Ah, yeah... I think you're right!!!!! It works...
Ah, yeah... I think you're right!!!!! It works fine...

Thanks a lot, for both your patience and your valuable time!!!! I really appreciate it!!

cheers!
13,017
Posted By giorgos193
First of all, really, thanks for your...
First of all, really, thanks for your patience....

I think your last solution will work fine...

It does what I want... it reads all the arguments... but it doesn't save them to a variable......
13,017
Posted By giorgos193
Thanks era, this is very interesting... but can I...
Thanks era, this is very interesting... but can I save these arguments to different variables?
13,017
Posted By giorgos193
Thanks for the response!! Ok... For...
Thanks for the response!!

Ok... For example, I want this script to read a file and find some values I am interested in.... But I want to create a more flexible script (if possible) and set this...
13,017
Posted By giorgos193
thanks for the reply! Yes, obsiously, this...
thanks for the reply!

Yes, obsiously, this could be a way.... but can I, for example, to call them inside the for loop?

Because the number of arguments is not known apriori...
13,017
Posted By giorgos193
Thanks a lot... It looks to work... but how can I...
Thanks a lot... It looks to work... but how can I call these different variables?

echo $"VAR$i" (???????)


It's a trivial question, but it would be appreciated if you can help on this...
...
13,017
Posted By giorgos193
Assign script parameters to variables
Hi,

I have a bash script that accepts some parameters as input, like:

sh script.sh first second third .....

I want to save these parameters as different variables, something like:...
Showing results 1 to 17 of 17

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