startup.sh: command not found [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

startup.sh: command not found [SOLVED]

Postby markfilipak on Fri Mar 15, 2013 2:27 pm

I tried to run this script:
Code: Select all
#!/bin/bash
sudo passwd
passwd
/usr/bin/thunderbird -profile /shared/Thunderbird/Profiles/jkq8zu6r.default
I put it in a folder that's shared between Windows & a Linux VM.
Then I launched the Linux VM -- it boots the Mint DVD (not installed version of Mint) -- and I mounted the shared folder.
In the Mint terminal session I wrote:mint@mint / $ sudo mkdir /shared
mint@mint / $ sudo mount -t vboxsf shared /shared
mint@mint / $
Then I tried to run /shared/startup.sh
In the Mint terminal session I wrote:mint@mint / $ cd shared
mint@mint /shared $ startup.sh
startup.sh: command not found
mint@mint /shared $
The 'startup.sh' properties show 'root' as the owner. I tried to change the owner to 'mint':
In the Mint terminal session I wrote:mint@mint /shared $ sudo chown mint startup.sh
mint@mint /shared $
Linux didn't complain, but the owner remained 'root'.

Q1: Why didn't chown work?
Q2: How should I interpret "startup.sh: command not found"? startup.sh contains 3 commands (lines). Which one is 'not found' and why?

Sorry to ask such a newbie question. Thanks for your help - Mark.
Last edited by markfilipak on Tue Mar 26, 2013 2:02 pm, edited 1 time in total.
VMware Player 5.0.2
Host: WinXP3, 32-bit
Guest: Linux Mint 14, 64-bit + Xfce 4.10
markfilipak
Level 1
Level 1
 
Posts: 38
Joined: Sun Mar 10, 2013 8:08 pm

Linux Mint is funded by ads and donations.
 

Re: startup.sh: command not found

Postby karlchen on Fri Mar 15, 2013 4:44 pm

Hello, markfilipak.

Linux Mint by default does not look for executables in the current folder unless it is explicitly listed in the $PATH variable.
Hence, being inside the folder "shared", launch "startup.sh" by executing
Code: Select all
./startup.sh


Karl
User avatar
karlchen
Level 12
Level 12
 
Posts: 4141
Joined: Sat Dec 31, 2011 7:21 am

Re: startup.sh: command not found

Postby markfilipak on Fri Mar 15, 2013 5:41 pm

Wow! Thanks, Karl. I never would have thought of that.
VMware Player 5.0.2
Host: WinXP3, 32-bit
Guest: Linux Mint 14, 64-bit + Xfce 4.10
markfilipak
Level 1
Level 1
 
Posts: 38
Joined: Sun Mar 10, 2013 8:08 pm


Return to Newbie Questions

Who is online

Users browsing this forum: gmilo2 and 26 guests