`ps -ax` gets cut off when run from cron

C

Carl Lerche

Hello,

I have a simple ruby script that writes the content of `ps -ax` to a
file, when I call it myself, it runs fine, however when I set the
script in a cron job and cron calls it, the output is truncated at 80
characters, which is quite annoying. Any ideas as to why this is? I
have my PATH set in the crontab:

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

Thanks,
Carl Lerche
 
P

Paul Battley

I have a simple ruby script that writes the content of `ps -ax` to a
file, when I call it myself, it runs fine, however when I set the
script in a cron job and cron calls it, the output is truncated at 80
characters, which is quite annoying. Any ideas as to why this is? I
have my PATH set in the crontab:

Try `ps -axwww` instead.

Paul
 
C

Carl Lerche

Hey, that did it! Dumb of me not to check the man pages for ps...
didn't think of it.

Thanks for the help!
-carl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top