ctlscript.sh in Terminal?
|
|
Hi All, True to my name sake, I am a TOTAL newbie; I do want to learn, and firmly believe in RTFM. But, after reading the mampstack.pdf I am not clear as to where to “RUN” the ctlscript.sh. I opened the “use_mampstack” Terminal in the “mampstack-1.0-beta-4” directory and get the following: Last login: Sat Oct 11 21:51:02 on ttys000 Then I type or paste: $ /Applications/mampstack-1.0-beta-4/ctlscript.sh start apache (I also only type “ctlscript.sh”) and get the following: bash-3.2$ ctlscript.sh start apache If I add “Sudo” or “root” I get the same thing (except it warns me about not using “Sudo” properly) . Luckily, I am using the BitNami Control Panel to start and stop these services; but, I am more concerned that either this is a “USER ERROR” or I am missing something here. Also, I could not find the MAMPctl.sh utility: mentioned in the “Readme.txt” file… Any thoughts or input would be greatly appreciated. Thanks, Newbee in training |
|
|
Hi bitnewbee, On Unix systems (like OS X and Linux), to execute a file you have to use either an absolute or relative path. If you try to execute the control script by just typing
as you did, the operating system is looking for it in the folders that are defined in the PATH environment variable. To prevent it, you just call it using a relative path, ie, if you are in the very same directory in which the script is located (<installdir>/scripts), you need to call it by
as the dot is a symbol meaning “current directory”. About the README.txt issue, that is likely to be a problem of not having updated the documentation accordingly, as that was changed a long time ago, thanks for reporting. Don’t hesitate to post if you need more help, we’ll be glad to be useful :) Cheers |
