Find the answer to your Linux question:
Results 1 to 3 of 3
Hi All, I am new to the linux os. I am trying to create a batch script or shell script but i am having some difficulties in run it. I ...
  1. #1
    Just Joined!
    Join Date
    Jun 2009
    Posts
    12

    Shell scripting

    Hi All,

    I am new to the linux os. I am trying to create a batch script or shell script but i am having some difficulties in run it. I am able to run individual line in cmd prompt but when i run it in shell script .sh it gives an error. i have pasted script below and error too..

    ************************************************** **************
    #!/bin/sh

    "./lencod.exe -f BLOOM_320x240.cfg -p QPISlice=9 -p QPPSlice=9 -p QPBSlice=9 -p ReconFile ="Bloom_rec_qp9.yuv"> outBloom_qp9.yuv"


    echo "Done."

    ************************************************** ***************

    and error i am getting is

    >>> ./run.sh
    : No such file or directoryexe -f BLOOM_320x240.cfg -p QPISlice=9 -p QPPSlice=9 -p QPBSlice=9 -p ReconFile =Bloom_rec_qp9.yuv
    Done.


    Both lencod.exe and Bloom_rec_qp9.yuv are in the same file of run.sh

    thanks
    fido

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    I assume this means you are trying to run on cygwin, since exe don't natively run on linux. Did you set the execute bit for the script so you can actually run it? Also, I would take it out the quotes at the beginning and end.

  3. #3
    Just Joined!
    Join Date
    Jun 2009
    Posts
    12
    No i am running on Redhat linux it is just the name i have named it like that it is still the binary file.......

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...