![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Found glich in 'bash'-shell !!! | alex_5161 | UNIX for Advanced & Expert Users | 1 | 04-17-2009 02:34 AM |
| bash: cron-config: command not found - PLEASE HELP ME!! | sriya | UNIX for Dummies Questions & Answers | 2 | 10-14-2008 05:37 PM |
| found error 138 while run shell script | rinku | Shell Programming and Scripting | 1 | 06-02-2008 02:29 AM |
| Shell script run error ksh: not found | nz80qy | Shell Programming and Scripting | 3 | 03-25-2008 10:57 AM |
| mv command is giving error in shell script | gammit | Shell Programming and Scripting | 5 | 12-13-2007 03:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
#!/bin/bash and #1bin/sh command not found error on mac osx terminal/shell script
i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine.
then last week i wrote capture.sh and it has been running fine on a couple computers. but then i tried to run videochecker.sh on a new machine that runs capture.sh fine and i got the following error: Code:
: No such file or directory#!/bin/bash but then i saw they had different first lines. one is /bin/sh and one is /bin/bash weird thing to because the one that doesn't work on this machine (/bin/bash) has been working fine on the other broadcaster mac min for several weeks. scripts still very mysterious to me. so i change it so #!/bin/sh and #! /bin/sh still no go... Code:
: No such file or directory#!/bin/sh : command not foundline 2: : command not foundline 5: : command not foundline 7: : command not foundline 9: '/videochecker.sh: line 72: syntax error near unexpected token `do '/videochecker.sh: line 72: `for f in *.mp4; do Code:
bash -ex ./videochecker.sh ' '#!/bin/sh : No such file or directory#!/bin/sh Clarence$ bash -ex ./videochecker.sh ' '#!/bin/bash : No such file or directory#!/bin/bash Clarence$ echo $SHELL /bin/bash weird bash not found error in mac terminal on Flickr - Photo Sharing! scripting error, #!/bin/bash not found? on Flickr - Photo Sharing! anybody have any ideas here? sorry if i posted in wrong place. wasn't sure if this was a scripting problem or a mac os x problem. thanks, dan Last edited by pludi; 4 Weeks Ago at 01:32 AM.. Reason: code tags, please... |
![]() |
| Bookmarks |
| Tags |
| bash, mac, osx, script, shell |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|