Ad Widget

Collapse

Remote Command doesn't like spaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rbarrero
    Junior Member
    • Mar 2007
    • 21

    #1

    Remote Command doesn't like spaces

    Hi;

    After all this testing, i realize I CAN run remote commands... but not if the commands contain spaces.

    sudo /etc/init.d/httpd start

    I wrote a small script called "httpd-start" that contains the above command and it works.

    Does anyone else have this problem?

    Thanks!
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Any or prefix/trailing spaces?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • rbarrero
      Junior Member
      • Mar 2007
      • 21

      #3
      This is the exact command:

      sudo /etc/init.d/httpd start

      No prefixes or trailing characters. I am able to execute the command above by writing a dump wrapper script that contains no spaces or strange characters.

      Permissions are correct on the file (httpd). I can run the init scripts as remote command _without_ the "start" argument, and prints Usage parameters. With the start argument it fails.

      Comment

      Working...