Problem with #!

Conor P. Cahill cpcahil at virtech.uucp
Mon Dec 24 10:28:42 AEST 1990


In article <1990Dec23.083329.22021 at csn.org> frechett at snoopy.Colorado.EDU (-=Runaway Daemon=-) writes:
>long as the first line was 
>#!/tmp/.../expect -f
>
>I then recompiled everything and it is now.
>#!/users/en-eecs/huangc/.../expect -f 
>I am absolutely positive that this is the correct path for it but it simply 
>doesn't work now.  It appears that it is trying to execute it as a csh

The problem is that the kernel is interpreting the #! and it (the kernel)
has a fixed limit on the number of bytes (I have seen it as low as 32 bytes).

The solution is to put expect in a public place with a shorter
path, or use symbolic links to make the path shorter.

-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.questions mailing list