1834156 Members
3052 Online
110064 Solutions
New Discussion

Re: crontab

 
SOLVED
Go to solution
Anthony deRito
Respected Contributor

Re: crontab

sam, I see a lot of people trying to help you and they are being very patient with you. If you accept and appreciate the help while reading the responses people are giving you, why are deciding to skip the points?

Tony
Victor BERRIDGE
Honored Contributor

Re: crontab

exactly,
I you look at your mail you would see the cron messages...
type mailx

the message would be like:
*************************************************
Cron: The previous message is the standard output
and standard error of one of your crontab commands:



....
Thats why a script that calls the command is more logical
sam kim_1
Frequent Advisor

Re: crontab

Atoanetta,

I just ran uvscan manually,
# uvscan -cvr /
and is running perpect
and i can see the output.

however, i dont know how to capture as you mentiond that
"...... /usr/local/bin/uvscan >/mylocation/output "

You mean I have to do this ??(in order to capture them, and take look outpout later)

# cd /
# mkdir mylocation
# cd /usr/local/bin/uvscan
# capture /usr/local/bin/uvscan >/mylocation/output

[i will/have to close this topic very soon in any way, and thanks for all your patient]
Rick Garland
Honored Contributor

Re: crontab

If the program does not include a log file of its own, you will want to capture the output.

I believe this is a program that would have a log file (or some kind of output file) for the reason being that if the scan program finds something, how do you know?

Antoanetta Naghiu
Esteemed Contributor

Re: crontab

I mean that you can type:
#/usr/local/bin/uvscan >/mylocation/output

where /mylocation is a directory, ex. tmp, output is a file name.
Type #/usr/local/bin/uvscan >/tmp/output.uvscan
What it will do? Instead to get the output to the screen it will write it to /tmp/output.uvscan file.
After the command is done, you can see it #more /tmp/output.uvscan
But, one question how long it takes to this command (uvscan) to run? How long is the output in the screen?
If runs just a little and output is not very, very long, you are ok. If not, concerns about space...
If runs like that, you can update the crontab line having there the same thing, output to a file.
sam kim_1
Frequent Advisor

Re: crontab

thanks!
i will try/play more about this area!!
that is the way how to learn and ...
thanks Atoanetta for (especially) your step-by-step teaching method - that is easy to understand to me !!
Alan Riggs
Honored Contributor

Re: crontab

Thanks is a nice word.

In this forum, there is an additional way to express your gratitude -- by assigning points to answers that have helped you. Taking the time to do this lets people know that you have appreciated the time they took to try to help you solve a problem.
sam kim_1
Frequent Advisor

Re: crontab

Thanks for helping me to all!
Sorry for late assigning points and etc.

I am stillll a beginner for this forum and points rule, etc.

I learned lot (not only technical) including using behavior, etc.
Have a good day, all!!