Search Results

Search: Posts Made By: zixzix01
958
Posted By rbatte1
Assuming you have input like this:-$ cat File-A ...
Assuming you have input like this:-$ cat File-A
12300 Target account 1
12321 Target account 2
12344 Target account 3
12345 Account to exclude 1
22344 Target account 4
22346 Account to exclude 2...
4,405
Posted By durden_tyler
Ok, much better. I haven't used...
Ok, much better.
I haven't used Proc::PID::File, so I can't say much about it.
However, consider the following lines in your code:



You close $OutfileH and then try to print to it if the...
4,405
Posted By durden_tyler
Interesting. I haven't seen your entire script...
Interesting. I haven't seen your entire script and the "die" should've said something, but in any case:

- Print the value of $LogFile right before that "open" statement.
- Check that the path...
4,405
Posted By durden_tyler
?? (1) But why do you Ctrl-C in the first...
??

(1) But why do you Ctrl-C in the first place?
(2) Do you encounter that error because you press Ctrl-C? Or do you encounter it anyway?
(3) What happens if you let the script run its...
4,405
Posted By ahamed101
# Using recommended pragmas use strict; use...
# Using recommended pragmas
use strict;
use warnings;

use File::Basename;

my $Directory = "/directory/script";
my $LogFile = $Directory . "/logs/" . basename($0, ".pl") . ".log"; my...
4,405
Posted By greet_sed
I apologize. remove the last ; which is not...
I apologize.

remove the last ; which is not needed for subroutine.
};
try running perl -c <your_file_name> # for compilation errors.
4,405
Posted By greet_sed
Yes, just a typo.
Yes, just a typo.
4,405
Posted By greet_sed
after quick look, seems you have not declared ...
after quick look,
seems you have not declared
$OutFileH

my $OutfileH; #Output File Handle
5,528
Posted By vbe
Do you have write permission for the output?
Do you have write permission for the output?
5,528
Posted By tene
Why are you using {"/home/user1/bin/outfile.out"}...
Why are you using {"/home/user1/bin/outfile.out"}
Just put filename alone without braces and ".
5,528
Posted By DGPickett
The problem may just be the avalaudt3.* input...
The problem may just be the avalaudt3.* input files generated there. It is a bit odd to juggle two lists, one from ll and one from gfind !
14,057
Posted By dude2cool
Hmm interesting. Thanks for sharing the solution...
Hmm interesting. Thanks for sharing the solution with the rest of us :-)

Curious though, /etc/gettydefs has only baud rate etc. settings to connect to the console. Did the file have your old...
14,057
Posted By dude2cool
man hostname From man page above:
man hostname

From man page above:
4,465
Posted By Corona688
openssh can be particular about the ownership and...
openssh can be particular about the ownership and permissions of ~/.ssh and files inside it. Usually I just use ssh-copy-id and it sets up everything right.
4,465
Posted By Corona688
Fail to login to someone's account n+1 times. An...
Fail to login to someone's account n+1 times. An attacker could even do that by accident easily enough.

What are you logging into, from what, using what? The procedure for using SSH keys from...
4,465
Posted By Corona688
That you can't is really the point. If you...
That you can't is really the point. If you could, so could an attacker.

Counting failed logins never struck me as a very good idea. Any attacker who knows you have Pam_Tally on can disable all...
2,825
Posted By Peasant
This sed should fill your requirment i believe. ...
This sed should fill your requirment i believe.

sed 's/root@\(server[0-9]\{1,4\}: \)\|\(server[0-9]\{1,4\}: \)//g' input > output
2,825
Posted By Corona688
It means what it says. You don't have sync.txt ...
It means what it says. You don't have sync.txt

Replace it with your own filename, or leave the filename off completely and just pipe something into it.

If you're telling vi to use it as a...
2,825
Posted By neutronscott
But the awk version took care of the extra...
But the awk version took care of the extra column, because it just uses ':' as delimiter and prints the last 2 columns...


mute@geek:~/test$ awk -F: 'NF > 2 { print $(NF-1) $NF }' sync.txt
...
2,825
Posted By neutronscott
The column went away with my awk example. Not...
The column went away with my awk example. Not correct or want an awk-less solution?




Yes, as Peasant said, with sed


sed 's/root@####://g' file > outfile
2,825
Posted By neutronscott
This a good start? mute@geek:~/test$ awk...
This a good start?


mute@geek:~/test$ awk 'BEGIN { FS=":" } NF > 2 { print $(NF-1) $NF }' sync
/opt/dba/bin/removedbaccount.sh need to update
/opt/sysadm/bin/sync###dirs.sh need to update
...
2,825
Posted By alister
I don't see why cut with the appropriate...
I don't see why cut with the appropriate delimiter doesn't work, unless there are colons in the characters you've masked out. Perhaps you can try an awk equivalent:
awk -F: '{print $2}' file
...
2,825
Posted By Peasant
sed 's/root@####://g' file > outfile
sed 's/root@####://g' file > outfile
10,982
Posted By ctsgnb
If you have 1 logical volume of 100 logical...
If you have 1 logical volume of 100 logical extend spread over 100 Physical extend of Disk1

If you make a mirror of those 100 Physical Extend that are on Disk1 , on an additionnal Disk2

You...
10,982
Posted By ctsgnb
Your lvol 5 has 1 mirror copy So if you also...
Your lvol 5 has 1 mirror copy
So if you also want have some for your lv, you need to add some with the lvextend command with the -m 1 option and specifying your lv and a relevant disk location. Then...
Showing results 1 to 25 of 58

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