You are not logged in.

#1 2006-12-15 12:09:28

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Simple script in /usr/local/bin just won't start - SOLVED

I put this really simple script for starting psi into my /usr/local/bin, set it a+xr and added /usr/local/bin to my path. However, I just can't start the damn thing.
Here's the script itself (I really don't think there's something wrong with it, since if I type it in the shell it works fine):

#!/bin/zsh/
#start psi, never stop
while true;
do psi;
done

Here's my users $PATH:

─$ print $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/opt/bin:/usr/local/bin:/opt/kde/bin:/opt/mozilla/bin:/opt/qt/bin

Here's the permissions of the script:

$ ls -lah /usr/local/bin
total 4.0K
drwxr-xr-x  2 root      root   80 Dec 15 03:52 ./
drwxr-xr-x 10 root      root  240 Dec 10 18:55 ../
-rwxrwxr-x  1 kamagurka users  60 Dec 15 03:51 psi.start*

And here's what happens when I try to execute it:

$ psi.start
zsh: command not found: psi.start

So, I'm either missing something incredibly obvious, or something freaky's going on here. I hope it's the former.
EDIT: I had no idea where to put this, so I put it into Desktop Env since I'm trying to start a graphical app, but feel free to move it.
EDIT: Yea, I was being a little dense.


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

#2 2006-12-15 12:13:18

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: Simple script in /usr/local/bin just won't start - SOLVED

Not sure if that's the problem, but try removing the trailing / (slash) from your script's shebang.

Offline

#3 2006-12-15 12:24:06

kamagurka
Member
From: Munich, Germany
Registered: 2006-02-20
Posts: 150
Website

Re: Simple script in /usr/local/bin just won't start - SOLVED

smoon wrote:

Not sure if that's the problem, but try removing the trailing / (slash) from your script's shebang.

See, something really obvious. Stupid, even. You can see, I don't do a lot of scripting.


I always roll 20s on my disbelieve checks.
You better believe it.

Offline

Board footer

Powered by FluxBB