Search Results

Search: Posts Made By: doublejz
Forum: Linux 08-22-2010
2,843
Posted By doublejz
VMWare Server on FC13
Can someone provide some assistance with this. I'm trying to install vmware server but it's not going so well.

$ uname -a
Linux testunix 2.6.33.6-147.2.4.fc13.i686.PAE #1 SMP Fri Jul 23 17:21:06...
42,962
Posted By doublejz
oh yea, forgot to remove it from the $source....
oh yea, forgot to remove it from the $source. That fixed it, thanks man!
42,962
Posted By doublejz
whoops cut some of it off in the previous post. ...
whoops cut some of it off in the previous post.

zcat /archive/$ID$date.gz | awk -v src=$source '{FS = "^"} {if($2==$src) {print $1}}' | awk '{print $7}' | sort | uniq -c | sort -n
42,962
Posted By doublejz
Why would doing it like this provide no results? ...
Why would doing it like this provide no results?

zcat /archive/$ID$date.gz | awk -v src=$source '{FS = "^"} {if($2==$src) {print $1}}' | awk '{print $7}' | sort | uniq -c | s$
42,962
Posted By doublejz
If statement in awk with external variable
So I have a if statement inside an awk to check if $2 of a awk equals a specific IP but the test fails. So here is what I have.

# !/bin/sh
echo "Enter client ID"
read ID

echo "Enter month...
4,550
Posted By doublejz
bah, nevermind i just tossed it into the...
bah, nevermind i just tossed it into the background using &
4,550
Posted By doublejz
Calling subscript but sleep halts the main script
Ok, I have written a main script which checks a directory contents every 30 secs then sleeps. The subscript does a usermod, if the user is logged on, it sleeps for 30 secs and then trys again over...
9,968
Posted By doublejz
hehe oh yea, maybe I should give up scripting...
hehe oh yea, maybe I should give up scripting while I am ahead. :p
9,968
Posted By doublejz
find and replace text with a variable?
Is there a way that I can make the following work with using variables?

perl -pi -e 's#blah#hrm#ig' replacetext

but like this

var=blah
perl -pi -e 's#$var#hrm#ig' replacetext
4,368
Posted By doublejz
test to see if useradd worked
I am trying to write a script that does a useradd -G <group> <user> but you cannot modify the user if he/she is logged on. How could I check to see if the user is on or if the user has been added to...
11,019
Posted By doublejz
setting variable from grep | cut
file.dat contains
blah/hah

running the following at the shell prompt it works
$grep 'blah' file.dat | cut -d '/' -f 2
hah...
Showing results 1 to 11 of 11

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