2011-07-04 03:52:23     sh: can't execute 'command' : No such file or directory

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-07-04 03:52:23     sh: can't execute 'command' : No such file or directory

Yuriy Urasinov (RUSSIAN FEDERATION)

Message: 102071   

 

I try to make vitual console in browser by ajax.

 

I am using next shell script:

 

 

 

#!/bin/sh

 

cat << EOF

 

Content-type: text/plain

 

EOF

 

read -e str

 

command $str

 

echo ' '

 

 

 

This script works good on host machine, but doesn't work on blackfin.

 

I want to input text command and execute this command.

 

I saw message:

 

sh: can't execute 'command' : No such file or directory

 

How to resolve this problem?

QuoteReplyEditDelete

 

 

2011-07-04 14:36:20     Re: sh: can't execute 'command' : No such file or directory

Mike Frysinger (UNITED STATES)

Message: 102080   

 

dont use "command".  seems kind of pointless in your example in the first place.

 

read str

$str

QuoteReplyEditDelete

 

 

2011-07-06 07:06:46     Re: sh: can't execute 'command' : No such file or directory

Yuriy Urasinov (RUSSIAN FEDERATION)

Message: 102168   

 

Thank you Mike. It works. I lost a lot of time to find this keyword (command).

 

But this keyword is excess. It's so simple.

QuoteReplyEditDelete

Attachments

    Outcomes