I am writing expect script which can be used on mulple operating systems but the problem is
i can't use #!/usr/bin/expect
evreywhere so instead i tried to do
#!`which expect`
at the top but it failed
[sesiv@itseelm-lx4151 ~]$ ./sendcommand
-bash: ./sendcommand: `which: bad interpreter: No such file or directory
any solution for this.
/bin/bash
e.g.? – Hauke Laging Apr 24 '13 at 14:29/bin/sh
say AIX,solaris,linux,redhat,suse,HP – munish Apr 24 '13 at 14:41