Search Results

Search: Posts Made By: PWSwebmaster
Forum: What is on Your Mind? 03-19-2009
8,114
Posted By PWSwebmaster
I guess their government has their own way of...
I guess their government has their own way of collecting money from citizens.
Forum: What is on Your Mind? 03-18-2009
8,114
Posted By PWSwebmaster
Australia for me. It's almost exactly 1/2 way...
Australia for me. It's almost exactly 1/2 way around the world from where I live, so it's the farthest away. I was kind of curious about it a few years ago for that reason and have done a lot of...
11
4,187
Posted By PWSwebmaster
Sorry, the -e is not used to use a file for the...
Sorry, the -e is not used to use a file for the cron settings.

Your
crontab -u user123 cron.txt
should work
11
4,187
Posted By PWSwebmaster
The -e is also required to do editing. Try ...
The -e is also required to do editing.

Try
crontab -e -u user123 cron.txt
1,404
Posted By PWSwebmaster
I have a few setups where 2 users work with files...
I have a few setups where 2 users work with files and I give all the files and directories owner of one and user of the other with permissions 0770 for directories and 0660 for files.
11
4,187
Posted By PWSwebmaster
To edit a users crontab, you need to add "-u...
To edit a users crontab, you need to add "-u username" to the command.
8,300
Posted By PWSwebmaster
If the script is running as root, it should be...
If the script is running as root, it should be able to do it, but if it's being called from a website, it won't be running as root.
8,300
Posted By PWSwebmaster
Apache 2.0 suEXEC Support - Apache HTTP Server...
Apache 2.0
suEXEC Support - Apache HTTP Server (http://httpd.apache.org/docs/2.0/suexec.html)

Apache 1.3
Apache suEXEC Support (http://httpd.apache.org/docs/1.3/suexec.html)
3,684
Posted By PWSwebmaster
Try escaping the @ symbols. The dots should be...
Try escaping the @ symbols. The dots should be escaped also, otherwise they actually stand for "any single character".

perl -pi -e 's/ali1\@abcd\.com/ali\@abcd\.com/g' s.sh
8,300
Posted By PWSwebmaster
You may need to enable suexec to allow the script...
You may need to enable suexec to allow the script to create the directory. Suexec makes perl run as the user.
Forum: IP Networking 11-19-2008
5,608
Posted By PWSwebmaster
It's been different files and scripts, but mostly...
It's been different files and scripts, but mostly just files, being accessed at a high count of one IP like that.

Here's an example from log files for one case:



Netstat showed that IP many...
Forum: IP Networking 11-18-2008
5,608
Posted By PWSwebmaster
netstat - possible reasons for high IP count ???
One of my servers started getting heavily loaded a few weeks ago for a few hours, so I did some studying and wrote a script to use netstat to get the IP addresses connected and the count. I put a new...
4,499
Posted By PWSwebmaster
You're right. :o The post must have made me think...
You're right. :o The post must have made me think it doesn't run at 4:30, but his setting would run at midnight and 4:30pm.
2,296
Posted By PWSwebmaster
The Perl script will do that. The part that says ...
The Perl script will do that. The part that says
if ($l eq "\n") {"
is saying if the line is only a return character, (ie, a blank line), then print it, (ie. print the return character), which...
2,566
Posted By PWSwebmaster
Those (the simple ones) are the problems that can...
Those (the simple ones) are the problems that can drive a person crazy. Sometimes it takes an outsider to think of the obvious.
2,566
Posted By PWSwebmaster
The change didn't take then. A long time ago...
The change didn't take then. A long time ago there was a thread on another forum about this with a solution, but I don't remember what the solutions was.

Any chance the wrong zone file was...
16,088
Posted By PWSwebmaster
That'll work too, but don't need the global...
That'll work too, but don't need the global option since anchored matches can only match once. ;)
16,088
Posted By PWSwebmaster
Try escaping the round brackets. grep -v...
Try escaping the round brackets.

grep -v "^\(\s|\t\)*[6-9] " file
2,566
Posted By PWSwebmaster
Unless you're accessing directly from your...
Unless you're accessing directly from your server, your ISP is probably caching it. Check again in a few hours.
16,088
Posted By PWSwebmaster
Here is ghostdog74's version adjusted: grep -v...
Here is ghostdog74's version adjusted:
grep -v "^(\s|\t)*[6-9] " file
16,088
Posted By PWSwebmaster
It's not working for the original poster because...
It's not working for the original poster because the lines do not start with the numbers.

Here is what he's actually starting with.
backups01laxint.liuc(s){jsandova}[~]<0>$ nsrjb -v | awk -F' '...
2,296
Posted By PWSwebmaster
Perl script: #!/usr/bin/perl # You may need...
Perl script:
#!/usr/bin/perl
# You may need to change this path to /usr/local/bin/perl

open (datafile,"file.txt");
@lines = <datafile>;
close (datafile);

open (datafile,">newfile.txt");...
16,088
Posted By PWSwebmaster
If you mean remove the 6th to 9th line, try this:...
If you mean remove the 6th to 9th line, try this:

#!/usr/bin/perl
# You may need to change this path to /usr/local/bin/perl

$linecount = 0;

open (FILE,"input.txt");
@lines = <FILE>;
close...
5,028
Posted By PWSwebmaster
Here's a Perl script that will print almost all...
Here's a Perl script that will print almost all decimal numbers found in a file.

#!/usr/bin/perl
# You may need to change this path to /usr/local/bin/perl

open (FILE,"input.txt");
@lines =...
1,481
Posted By PWSwebmaster
for Perl, you can use this if you're going from...
for Perl, you can use this if you're going from and to files:
#!/usr/bin/perl
# You may need to change this path to /usr/local/bin/perl

local $/ = \3 ;

open (FILE,"in.txt");
while(<FILE>) {...
Showing results 1 to 25 of 33

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