Search Results

Search: Posts Made By: timj123
1,937
Posted By wisecracker
Have you tried: subprocess.run([ 'rsync -avzh...
Have you tried:
subprocess.run([ 'rsync -avzh --no-perms --delete --include=\"*sub*\" --exclude=\'*\' txt@vm5:/var/opt/at/oss/global/bt/work/ /tmp/ct' ], shell=True)
EDIT:
Changed code...
1,894
Posted By durden_tyler
It's actually working correctly. The !~...
It's actually working correctly.
The !~ operator returns true if the pattern match fails.
The =~ operator returns true if the pattern match succeeds.

You may want to take note that the !...
2,693
Posted By Corona688
base64 -d < inputfile > outputfile If you...
base64 -d < inputfile > outputfile

If you don't have base64, try

openssl base64 -d < inputfile > outputfile

Which is some sort of binary file I don't recognize.

To get the pure text data...
1,344
Posted By durden_tyler
(^|:) => the beginning of the string or a...
(^|:) => the beginning of the string or a ":" character (assign to $1)
([^:]{1,3}) => followed by 1, 2 or 3 occurrences of a character other than ":" (assign to $2)
(?=:|$) => followed...
993
Posted By greet_sed
Hi, Change the line as follows: my...
Hi,

Change the line as follows:
my $rx_var2 = (qr/^311480[*0-9a-fA-F]{11}$|^[0-9A-Fa-f]{10}
{4}$/);

instead of
my $rx_var2 = (qr/^311480[*0-9a-fA-F]{11}$/|qr/^[0-9A-Fa-f]{10}
{4}$/);
3,015
Posted By Aia
Given your explanation this should be able to do...
Given your explanation this should be able to do it. However, your desired output does not match what you explained.

#!/usr/bin/perl
#
use strict;
use warnings;

my @list = qw(REP045 REP095);...
1,300
Posted By Aia
The '-' is not a problem since the key is a...
The '-' is not a problem since the key is a string; what is a problem is that ' Value-1' is not the same that 'Value-1', since the the space in front counts as part of the key.

There is no...
3,015
Posted By Skrynesaver
Any time you want to quickly check if something...
Any time you want to quickly check if something is in a list, use a hash...

%hash=(val1 => 1, val2 => 1, val3 => 1, val6 => 1, ); # hash with unwanted items as keys and values that evaluate as...
3,352
Posted By Aia
Just a suggestion. #!/usr/bin/perl #...
Just a suggestion.

#!/usr/bin/perl
# digin.pl

use strict;
use warnings;

my @domains = qw(
yahoo.com
google.com
);

for my $query (@domains) {
print "$query\n";
my...
1,474
Posted By Aia
Take a look at the highlighted in red comments....
Take a look at the highlighted in red comments. Check the return of new Net::IP before assuming that it created an object. Use Net::IP::Error().

Why does it fail?
It needs another : or it will be...
1,474
Posted By yazu
Yes it's a good one. perl -e ' require...
Yes it's a good one.
perl -e '
require Net::IP;
$str = "2620:0:2d0:200:0:0:0:7";
$ip = new Net::IP($str, 6);
print $ip->print, "\n";
'
2620:0:2d0:200::7/128
17,289
Posted By durden_tyler
There's more than one way to do it, in Perl. :) ...
There's more than one way to do it, in Perl. :)
The dot (".") is the string concatenation operator.


#!/usr/bin/perl
use strict;
use warnings;
use POSIX qw(strftime) ;

my...
17,289
Posted By rangarasan
You need to allow the perl interpreter to...
You need to allow the perl interpreter to interpolate perl variables.

Just try this.!


system("wget -q --no-check-certificate -O /tmp/DataFile_$TimeStamp 'https://foobar.com/html' ") ;

...
2,453
Posted By Aia
Nope. That would would imply the following: ...
Nope. That would would imply the following:

my $group = [
'Groupname1: AEapproval
Description: group for AE approval
'
],
[
'iwov',
...
Showing results 1 to 14 of 14

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