Dont remove .sh from the file name.
Try chmod 777 filename.
u didnt refered the user in the command. that may be the problem.

On 29 June 2011 16:11, Subin Mathew <[email protected]> wrote:
> i want to create an executable file , that could be run in terminal..
> I have created an (sh) file and moved to ~/bin
> tried to create an exec file with chmod +x da.sh
> but even after that i cannot run it
> Any ideas?
> Heres the file (da.sh)
> -----------------------------------------------------------------------------------------da.sh
> ------------------------------------------------------
> echo welcome;
> echo "Enter URL  With http://www.domain.com/ format";
> read input;
> echo "URL is = " $input
> echo " =============="
> echo "Enter File name with extenstion (eg: a [File will be a PNG by
> default])";
> read output;
> echo "Output file is = " $output
> qrencode $input -o $output
> echo " =====THE END========"
> -----------------------------------------------------------------------------------------da.sh
> ------------------------------------------------------
> qrencode is a separate program that runs in terminal
> i can run this (sh) with ./da.sh in terminal but i want to run it as an
> executable file in terminal
>
> Thanks Subin
>
> --
> "Freedom is the only law".
> "Freedom Unplugged"
> http://www.ilug-tvm.org
>
> You received this message because you are subscribed to the Google
> Groups "ilug-tvm" group.
> To control your subscription visit
> http://groups.google.co.in/group/ilug-tvm/subscribe
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
>
>
>
> For details visit the google group page:
> http://groups.google.com/group/ilug-tvm?hl=en
>

-- 
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To control your subscription visit 
http://groups.google.co.in/group/ilug-tvm/subscribe
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]



For details visit the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en

Reply via email to