Unrelated Bash Frustrations

P_W

Active Member
Oct 7, 2003
43
0
156
Howdy!

This is completely not related to cpanel I'm sure, but I don't know where else to turn to - and there are lots of smart folks right here!

So anyway... what I'm basically trying to do is dump the output of

apachectl fullstatus

to a textfile for logging purposes. When I do it from the console, it works perfectly! However, when I run it from a bash script, it wraps and cuts off a lot of information.

Now, the weird thing is, I can re-create the wrapping issue if I use the command from the path like:

/usr/local/apache/bin/apachectl fullstatus

it outputs the same strange cropped output where just the command without the path doesn't. I've tried running just the straight command from the script and I get an error that the file isn't found. I'm at my wits end... any suggestions?!?

Thanks in advance!!!