Try using backticks instead of system.
my @array = `command line`;
-Original Message-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 11/17/02 5:50 AM
Subject: system function
Hi, i'd like to know how i can get a return sting from a command and
pass it
to awk program.
I have tried:
All locking modules use advisory locking hence it is not possible to
ensure that the file is not being touched unless you build the
intelligence into all possible scripts
Rory O'Connor wrote:
I am using File::Copy to move a file from one directory to another. However, I do not want to move the
> "Steve" == Steve <[EMAIL PROTECTED]> writes:
Steve> My assignment
gah. No homework here, please. Especially *bash* homework.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulti
Hi, i'd like to know how i can get a return sting from a command and pass it
to awk program.
I have tried:
#!/usr/bin/perl
...
system (('tunctl',-u,$buf) | ('awk',print,$2) );
tunctl write a string in STDERR like this:
Set 'tap1' persistent and owned by uid $buf
I like to pass this strin
Sorry if you got this twice!
Hi everyone, for some reason I can't seem to do basic math in this bash
script I'm creating for a class I'm taking. Here's my code
#!/bin/bash
isec=`date +%s`
thisec=$isec*$isec-$isec
I'm just getting the date in seconds, then trying to get a sort of
random number ou
On 17 Nov 2002, Steve wrote:
> Hi everyone, for some reason I can't seem to do basic math in this bash
> script I'm creating for a class I'm taking. Here's my code
>
> #!/bin/bash
> isec=`date +%s`
> thisec=$isec*$isec-$isec
>
> I'm just getting the date in seconds, then trying to get a sort of
>
Hi everyone, for some reason I can't seem to do basic math in this bash
script I'm creating for a class I'm taking. Here's my code
#!/bin/bash
isec=`date +%s`
thisec=$isec*$isec-$isec
I'm just getting the date in seconds, then trying to get a sort of
random number out of it by squaring the result