Search Results

Search: Posts Made By: buzzs4w
8,422
Posted By buzzs4w
The script that I use as a cron job is :- ...
The script that I use as a cron job is :-

#!/bin/sh

echo 'd *' | mail -N

exit 0
106,133
Posted By buzzs4w
'basename' returns the filename string without...
'basename' returns the filename string without any path info
eg. aFile instead of /aDirectory/anotherDirectory/aFile

$0 returns the first argument of a command line string, usually the command or...
2,645
Posted By buzzs4w
Thanks Otheus I assume that I would have to...
Thanks Otheus

I assume that I would have to add dev/null redirect to each and every cronjob within the crontab.

I found another solution which is adding EMAILTO="" to the start of the crontab,...
2,645
Posted By buzzs4w
Stopping Cron Mail to administrator
I have written a number of shell scripts which I have added to cron to run on an Apple Xserve running MAc OS Server 10.4.11.

Recently I configured postfix to use one of my company's email servers...
12,981
Posted By buzzs4w
Sorry Kobibn I'm not sure if it will work on...
Sorry Kobibn

I'm not sure if it will work on Solaris, but its a BASH script so I guess it should do

Try it and see
12,981
Posted By buzzs4w
Try this quick and dirty script, it will delete...
Try this quick and dirty script, it will delete files with a modified date older than the value after "-mtime" in days (in this case 28 days) Obviously the cd needs to change to the folder you want...
Showing results 1 to 6 of 6

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