Search Results

Search: Posts Made By: frankkoenen
3,315
Posted By frankkoenen
Hey there. I believe the script loop you...
Hey there. I believe the script loop you presented can be quickly accomplished with two "find" commands ....
find /home -maxdepth 2 -name '.rhosts' | xargs mail -s "rhosts" root
find /home...
1,408
Posted By frankkoenen
Use this: */5 * * * <path> If you...
Use this:

*/5 * * * <path>

If you really need for the command to run one minute after midnight, then every 5 minutes thereafter, you can include logic inside your "<path>" routine to ensure...
3,957
Posted By frankkoenen
Here's a shell/awk method for listing files with...
Here's a shell/awk method for listing files with full path name, and start/stop counts ... in the example, "/tmp/a" is the absolute path to the folder containing the files.

export START=501...
1,986
Posted By frankkoenen
$# inside your function is not the same scope as...
$# inside your function is not the same scope as $# of the shell itself.

If you pass the shell arguments to your function, the $# check inside the function should work ...

where you call ...
1,512
Posted By frankkoenen
Check out the POE module.
Check out the POE module.
Forum: Open Source 05-20-2011
340,852
Posted By frankkoenen
started way back with "vi" ... and now a days I...
started way back with "vi" ... and now a days I use "vim"
8,302
Posted By frankkoenen
Try using -ww ... some versions of the ps...
Try using -ww ... some versions of the ps command define this as:

-w Wide output. Use this option twice for unlimited width.


The 78 character width is sneakily suspicious...
5,172
Posted By frankkoenen
{corrected}
{corrected}
6,677
Posted By frankkoenen
Piping content into a shell can be dangerous,...
Piping content into a shell can be dangerous, avoid the pipe to "bash", here's the suggested script with revisions using "awk" to write directly to the output files without the need to pipe to bash...
1,205
Posted By frankkoenen
If these images are being accessed from your web...
If these images are being accessed from your web pages, say from Perl or PHP, or other Webserver backend, perhaps adding a call to the system logs as they're being served up might be worth trying....
1,374
Posted By frankkoenen
This should get you started ... #sh ip...
This should get you started ...

#sh ip traffic | grep ' bad hop count' | cut -d, -f3
16,404
Posted By frankkoenen
"-c" works, you could also do any of these: ...
"-c" works, you could also do any of these:


echo 'echo hello' | ksh
cat {sript_file} | ksh
ksh < {script_file}
5,390
Posted By frankkoenen
This will do it too ... if [ $(date +%u) !=...
This will do it too ...

if [ $(date +%u) != 5 ]; then
ls -l > files_$(date +"%m%d%Y").csv
fi

Please use code tags (https://www.unix.com/misc.php?do=bbcode&#code) when posting data and code...
4,593
Posted By frankkoenen
My suspicions where correct ... My issue was that...
My suspicions where correct ... My issue was that there were two procedures effecting this files, logrotate and cron.weekly/sysklogd using syslogd-listfiles --weekly command. I was able to filter...
4,593
Posted By frankkoenen
These settings have been in place for more than 6...
These settings have been in place for more than 6 months.

I considered the same situation the the size setting was an issue, and setup a test.

I created an entry called...
4,593
Posted By frankkoenen
The logs rotate only up to the 4th file. I want...
The logs rotate only up to the 4th file. I want to keep 12 instances of the file. I set 'rotate 12' in the stanza for the file.

When I run with -d, the output message summary reports
"(12...
4,593
Posted By frankkoenen
logrotate ignore 'rotate' setting.
the 'rotate' setting in my logrotate configurations is being ignored when run from the crontab.

I have tested my configurations using the "-d" option, the rotation count is working when I do the...
Showing results 1 to 17 of 17

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