Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!hp-pcd!hpfcso!hpfcdc!rsh From: rsh@hpfcdc.HP.COM (Scott Holbrook) Newsgroups: comp.sys.hp Subject: Re: indir and #! Message-ID: <5570553@hpfcdc.HP.COM> Date: 18 Dec 90 20:16:50 GMT References: <5713@uafhp.uark.edu> Organization: HP Fort Collins, Co. Lines: 27 > I am trying to install indir on an HP 375. I have gotten it to > compile, but when I try to execute a script like: > #!/usr/local/bin/indir some list of arguments > My shell reports to me that the file cannot be executed. As documented in exec(2) (talking about #! scripts): If the initial line of the script exceeds a system defined maximum number of characters, exec fails. The minimum value for this limit is 32. Indeed, the limit in HP-UX is 32 characters. My guess is that your line is exceeding this limit. > Is there something I need to do to enable this or is it not > supported under HP-UX? There is no way that you can change the 32 byte limit. You can either shorten your first line (perhaps move 'indir' to someplace with a shorter path), or make the script a sh(1) script that simply runs /usr/local/bin/indir some list of arguments Scott Holbrook / rsh@hpfcla.fc.hp.com HP-UX Development Lab