Search Results

Search: Posts Made By: hfreyer
10,495
Posted By hfreyer
Can't confirm statement 3. of Chubler_XL. I'm...
Can't confirm statement 3. of Chubler_XL. I'm using expect for ssh connections.
One might think of extending the expect command to handle the ssh login state machine,
e.g. something like this:

...
5,142
Posted By hfreyer
Although you did not mention that something went...
Although you did not mention that something went wrong I suppose that
your script has problems with the eval statement, which expects a shell command
instead of a script filename. You may try...
6,896
Posted By hfreyer
The parse error comes from "bc". The script...
The parse error comes from "bc". The script executes
echo ' 6.7% us > 6.0% us 6.1% us 6.2% us 6.3% us 6.5% us 6.6% us 6.7% us 6.8% us 6.9% us 7.0% us' | bcwhich is not a correct input for "bc". On...
1,793
Posted By hfreyer
while (<>) { chomp; split; foreach $i...
while (<>) {
chomp; split;
foreach $i (@_) {
...
}
}
If you want to get more familiar with perl, in any case it is recommendable to study the man pages (which in case of perl are very...
4,149
Posted By hfreyer
Proposal: Give date1 as "YYYY-MM-DD HH:MM". The...
Proposal: Give date1 as "YYYY-MM-DD HH:MM". The script would then be called as:
./myscript.sh "YYYY-MM-DD HH:MM"(if such precision not necessary, simply drop the HH:MM) and contains:
export...
1,665
Posted By hfreyer
Slightly more general (expecting lines starting...
Slightly more general (expecting lines starting with "filename=" and applies increasing increment on whatever number it finds before the extension dot):

perl -p -e...
Showing results 1 to 6 of 6

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