Search Results

Search: Posts Made By: varontron
Forum: Linux 03-22-2011
1,647
Posted By varontron
Top header says 50% free, but table shows 100% used
Hi,

Can anyone explain this?

top - 04:21:04 up 23 days, 2:35, 1 user, load average: 0.02, 0.02, 0.00
Tasks: 37 total, 1 running, 36 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, ...
4,201
Posted By varontron
depending on your env, shell, etc, commands in...
depending on your env, shell, etc, commands in the crontab don't always work as written. sometimes they need quoting, or escaping of special chars.

I recommend putting the command you've added...
11,066
Posted By varontron
after your 'set linesize' line add set...
after your 'set linesize' line add
set colsepchar ','

something like that should work. your column separator is probably defaulting to tab or fixed width.

check out Oracle Commands...
1,848
Posted By varontron
perl has a builtin hash containing shell...
perl has a builtin hash containing shell variables. you can access anything in the parent shell like so

# for a shell variable named 'VAR' the value of '$VAR' is accessed thusly:
$ENV{'VAR'};
3,816
Posted By varontron
sounds like you aren't loading your profile in...
sounds like you aren't loading your profile in the shell env used by the script. depending on which shell you use, the command could be

. path/to/.profile or source path/to/.cshrc

if you put...
1,173
Posted By varontron
for my $day (1..31) { print "$day\n" unless...
for my $day (1..31) {
print "$day\n" unless $day < 10;
print "0$day\n" if $day < 10;
}
10,120
Posted By varontron
to do it your way, just put the result of your...
to do it your way, just put the result of your 'echo' line in a variable:
VAR=`echo $LINE | grep 1 | cut -c 1`
if [ $VAR -eq 1 ]
but depending on your requirement, it might be quicker to do this,...
6,853
Posted By varontron
perl is interpolating the @ as an array variable....
perl is interpolating the @ as an array variable.

Run your script with -w and you'll see a warning like this:


Possible unintended interpolation of @address in string
2,234
Posted By varontron
you may be getting that error in my sample if...
you may be getting that error in my sample if you're still using the '-n' flag.

If I get a chance, I'll look at the shell script too.
2,234
Posted By varontron
file 'test': @www.test.com @www.test.org ...
file 'test':

@www.test.com
@www.test.org
@www.test.com
@www.test.org
@www.test.com
@www.test.com
@www.test.com
@www.test.com
@


command

perl -we 'my $domains = {};open FH,...
4,395
Posted By varontron
the key pair and the host fingerprint are...
the key pair and the host fingerprint are different.

You need to make sure the host key is cached in the registry for the user executing the psftp exe. IOW, you can't test as one user, cache the...
Forum: Programming 10-14-2009
3,162
Posted By varontron
not entirely sure, but I think you can't...
not entirely sure, but I think you can't transform a DOM Document into a stream result without serializing it first.

look at the docs for org.apache.xml.serializer.DOMSerializer;

here's some...
3,124
Posted By varontron
ok, so assuming there is a 1:1 correspondence...
ok, so assuming there is a 1:1 correspondence betw. lines in each file, i.e.,

file1: file2:
dir1 dir1a
dir2 dir2a

you can paste these together into a param file

paste...
2,500
Posted By varontron
first figure out the command line arguments to do...
first figure out the command line arguments to do launch thunderbird, compose a new message and add the headers, content you want.

this link may help,...
3,124
Posted By varontron
build a combined parameter file in a separate...
build a combined parameter file in a separate loop, then loop thru the "combined" file for your sql.
Forum: Web Development 10-08-2009
1,873
Posted By varontron
your description was a little out of whack with...
your description was a little out of whack with fieldnames and such, but I think this is what you want. substitute a value for the '?'

select
u.credits,
u.username,
p.cost
from
...
1,893
Posted By varontron
you can do it with a hash ref: my $hashref =...
you can do it with a hash ref:

my $hashref = {};
$hashref->{var1} = 'val1';
my $var1 = $hashref->{var1};
$hashref->{$var1}= 'val2';
my $var2 = $hashref->{$var1};

print "KEYS:\n";
foreach...
5,911
Posted By varontron
you can match on the varnames: my ($var1,...
you can match on the varnames:

my ($var1, $var2, $var3) = @myarr;
if (condition)
{
my $replacement =~ s/(${var1}|${var2}|${var3})/REPL/;
}
18,770
Posted By varontron
try putting the whole command string in quotes: ...
try putting the whole command string in quotes:
ssh source-ip-address "cd /home/dir1;zip backup.zip test.txt test/test2.txt"

if that doesn't work, try putting just the files to be zipped in...
2,701
Posted By varontron
perhaps you can post your files? If you're...
perhaps you can post your files?

If you're declaring variables in the first script and then calling the second from it, you need to use some sort of persistent memory, which is probably way...
2,823
Posted By varontron
sed 's/HelloInCapitals/Hello In Capitals/g' file ...
sed 's/HelloInCapitals/Hello In Capitals/g' file
This will change the strings in the file. The 'g' (global) says make the change to all occurances on a line.
Redirect the output to write the...
9,324
Posted By varontron
I'm not aware of a built in process, but a common...
I'm not aware of a built in process, but a common practice is to echo 'date' output into logs redirected from the process.

echo `date +%Y%m%d%H%M%S` > mylog; myprocess >> mylog 2>&1 ;echo `date...
3,063
Posted By varontron
SECS_IN_YEAR=-31536000 while read $line do ...
SECS_IN_YEAR=-31536000
while read $line
do
DIFF=`echo $line | awk -F"|" '{ split($4,a,":");print systime() - mktime(a[1]" "a[2]" "a[3]" 00 00 00") }'`
if [ $DIFF -gt $SECS_IN_YEAR ]
then
...
6,635
Posted By varontron
put the final 'EOF' after 'exit' otherwise...
put the final 'EOF' after 'exit'

otherwise you are exiting from the running script, not the remote session
6,635
Posted By varontron
despite issuing commands after ssh in your...
despite issuing commands after ssh in your script, you are not actually passing those commands to the remote server. your script is instead waiting for that ssh command to return (i.e., logout)...
Showing results 1 to 25 of 109

 

Featured Tech Videos

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