shell problem

Raanan Herrmann raanan at bc-cis.UUCP
Sun Mar 20 01:37:25 AEST 1988


	An application I wrote in shell should accept a unix command 
from a user and execute it. The solustion should be:
	read l
	exec $l

	This does not work when $l contain a commands with parameters
(eg. "ls -l") as the error generated is "command not found", and does
not work when the command contain ";" (eg. "ls -l;who").
 
	My solution was;
	read l
	echo $l>tmp$$
	exec tmp$$
 
	But, I don't like this solution - any better ideas. PLEASE, also
e-mail your answer to me, to ron at jkfmny.uucp
-- 
------------------------------------------------------------------------
Ron Herrmann  (jkfmny!ron, ron at jkfmny.UUCP raanan at bklyncis.BITNET)



More information about the Comp.unix.xenix mailing list