Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dhokes

macrumors regular
Original poster
Dec 5, 2012
153
5
I'm trying to learn to write shell scripts and use the Terminal.

In Users/user/Development/linux I've got a script called sysinfo_page.

So I'm in the linux folder in the terminal and I can see the sysinfo_page when I type the ls command.

However, when I enter the following command:
sysinfo_page > sysinfo_page.html

I receive the following message:
-bash: sysinfo_page: command not found

How do I resolve this?
 
Did you set the permissions to exectuable? I usually need to execute a script by the following convention ./sysinfo_page > sysinfo_page.html
 
Did you set the permissions to exectuable? I usually need to execute a script by the following convention ./sysinfo_page > sysinfo_page.html

If I type the following command, I receive a Permission denied message.

I think I need to add the directory to the PATH? But I'm unsure why/how to do it?
 
do a ls -al in the directory that holds your scripts and paste the results.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.