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
markfilipak
Level 4
Level 4
Posts: 494
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio, USA

startup.sh: command not found [SOLVED]

Postby markfilipak » 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.
Windows 7 [ VirtualBox [ Linux Mint 18 ] ]

User avatar
karlchen
Level 16
Level 16
Posts: 6826
Joined: Sat Dec 31, 2011 7:21 am
Location: Germany

Re: startup.sh: command not found

Postby karlchen » 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
Image
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

markfilipak
Level 4
Level 4
Posts: 494
Joined: Sun Mar 10, 2013 8:08 pm
Location: Ohio, USA

Re: startup.sh: command not found

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

Wow! Thanks, Karl. I never would have thought of that.
Windows 7 [ VirtualBox [ Linux Mint 18 ] ]


Return to “Newbie Questions”

Who is online

Users browsing this forum: Wadeford and 15 guests