1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

domain.sh exists but bash returns not found

Discussion in 'Plesk for Linux - 8.x and Older' started by anjanesh, Dec 29, 2005.

  1. anjanesh

    anjanesh Guest

    0
     
    My client is with godaddy - dedicated using Plesk 7.5 on Linux.

    Using Putty I went to /usr/local/psa/bin

    lt gave
    Code:
    [root@mywebserver bin]# ls
    ....
    apache_cleanup.sh             domain.sh           psarestore
    .....
    
    But when I entered
    domain.sh
    Code:
    [root@mywebserver bin]# domain.sh
    -bash: domain.sh: command not found
    [root@mywebserver bin]#
    
    BTW, when browsing using WinSCP 3.8 if I right-click domain.sh > properties, it shows
    Links to: /usr/local/psa/admin/plib/api-cli/domain.php

    Any idea how to get domain.sh running ?

    Thanks
     
  2. jwdick

    jwdick Guest

    0
     
    Does domain.sh have the right properties for an executable?

    The error says the "command is not found"

    Until the permissions are correct, try "sh domain.sh" without the quotes.
     
  3. anjanesh

    anjanesh Guest

    0
     
    Ok. I got it working
    ./domain.sh
    Forgot to add the ./ in front.

    BTW, where do I place a php file containing the exec("./domain.sh....") code on a dedicated server having root access ?
    And how do I run it ?
     
Loading...