Visit Our UNIX and Linux User Community


Coding on my Mac


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Coding on my Mac
# 1  
Old 11-28-2007
Coding on my Mac

I would like to start coding on my mac, but I'm getting an error when I attempt to execute my script

-bash : testscript: command not found

I have verified that the #! line points to the correct directory.

If you have some insight it would be greatly appreciated!

- D
# 2  
Old 11-28-2007
Try running it as

./testscript

It's bad practice to have the current directory "." on the path. (unlike certain operating systems from Seattle....)

Previous Thread | Next Thread
Test Your Knowledge in Computers #160
Difficulty: Easy
The Internet Autonomous Network Authority (IANA) is responsible for maintaining the official assignments of Internet port numbers.
True or False?

2 More Discussions You Might Find Interesting

1. OS X (Apple)

The Terminal on Mac: Coding

So found this C code online and need to compile it in Terminal on Mac. Here is the code: #include <stdio.h> #include <math.h> int option; char q; int number; int currentsum; int value; void calc() { printf("\t\t\t\t\tBegin\n"); // says begin in top middle of screen ... (3 Replies)
Discussion started by: 1negroup
3 Replies

2. OS X (Apple)

Let's get a .mac top level domain! As in www.xyz.mac

ICANN, the Internet Corporation for Assigned Names and Numbers, is inviting proposals for new sponsored top level domains. This may be wishful thinking, but isn't that a chance to push for a .mac top level domain (TLD)? I for one would VASTLY like the idea of having a domain of something.mac --... (0 Replies)
Discussion started by: ropers
0 Replies

Featured Tech Videos