Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Unrelated Bash Frustrations

Discussion in 'General Discussion' started by P_W, Nov 13, 2006.

  1. P_W

    P_W Active Member

    Oct 7, 2003
    Likes Received:
    Trophy Points:

    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!!!

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice