Linvincible wrote: 
> back at it
> I scripted what''s necessary I think, I have a permission problem
> Even if I place the script in tc home directory and give exec rights on
> the script (irswith below) I can''t execute
> 
> tc@piCorePlayer:~$ ls -l
> total 28
> -rwxrwxrwx    1 tc       staff          916 Aug 10 16:39 httpd
> -rwxr-xr-x    1 tc       staff          524 Sep  5 18:40 irswitch.sh
> 
> it says
> tc@piCorePlayer:~$ ./irswitch.sh
> -sh: ./irswitch.sh: not found
> 
> tc@piCorePlayer:~$ sudo ./irswitch.sh
> sudo: unable to execute ./irswitch.sh: No such file or directory
> 
> 
> what am I doing wrong?

hi Linvincible,

I think I mentioned this earlier?? piCore only uses the standard shell
not bash. So, have you changed the very first line of each script from
#!/bin/bash to #!/bin/sh. Also the standard shell doesn't do arrays,
everything else should be OK.

regards


------------------------------------------------------------------------
Greg Erskine's Profile: http://forums.slimdevices.com/member.php?userid=7403
View this thread: http://forums.slimdevices.com/showthread.php?t=97803

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to