Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!samsung!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions Subject: Re: Problem with #! Keywords: scripts expect Message-ID: <1990Dec23.232842.4354@virtech.uucp> Date: 23 Dec 90 23:28:42 GMT References: <1990Dec23.083329.22021@csn.org> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 19 In article <1990Dec23.083329.22021@csn.org> frechett@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