|
From: cnurbw on 16 Apr 2008 11:03 Hi, I'm on a Solaris 10 system and I have the following executable file.shell. Why can't the file be found when I want to execute it ? Have gotten same results using either /bin/ksh or /bin/ sh. Thanks, Carl $: file RSCD741-r2000-SOL8SPARC.SH RSCD741-r2000-SOL8SPARC.SH: executable shell script $: $: ls -l *RSCD* -rwx------ 1 carl other 11325495 Apr 14 17:13 RSCD741-r2000- SOL8SPARC.SH $: ./RSCD741-r2000-SOL8SPARC.SH ksh: ./RSCD741-r2000-SOL8SPARC.SH: not found $: ./*RSCD* ksh: ./RSCD741-r2000-SOL8SPARC.SH: not found $:/bin/sh $:ls -l RSCD741-r2000-SOL8SPARC.SH -rwx------ 1 carl other 11325495 Apr 14 17:13 RSCD741-r2000- SOL8SPARC.SH $: ./RSCD41-r2000-SOL8SPARC.SH ../RSCD741-r2000-SOL8SPARC.SH: not found $:
From: Richard B. Gilbert on 16 Apr 2008 11:08 cnurbw(a)yahoo.com wrote: > Hi, > I'm on a Solaris 10 system and I have the following > executable file.shell. Why can't the file be found when I want to > execute it ? Have gotten same results using either /bin/ksh or /bin/ > sh. > > Thanks, > Carl > > $: file RSCD741-r2000-SOL8SPARC.SH > RSCD741-r2000-SOL8SPARC.SH: executable shell script > > $: > $: ls -l *RSCD* > -rwx------ 1 carl other 11325495 Apr 14 17:13 RSCD741-r2000- > SOL8SPARC.SH > > $: ./RSCD741-r2000-SOL8SPARC.SH > ksh: ./RSCD741-r2000-SOL8SPARC.SH: not found > > > $: ./*RSCD* > ksh: ./RSCD741-r2000-SOL8SPARC.SH: not found > > > $:/bin/sh > $:ls -l RSCD741-r2000-SOL8SPARC.SH > -rwx------ 1 carl other 11325495 Apr 14 17:13 RSCD741-r2000- > SOL8SPARC.SH > > $: ./RSCD41-r2000-SOL8SPARC.SH > ./RSCD741-r2000-SOL8SPARC.SH: not found > $: Because you didn't ask the system to execute it?? Try: .. RSCD41...
From: Colin B. on 16 Apr 2008 11:19 cnurbw(a)yahoo.com wrote: > Hi, > I'm on a Solaris 10 system and I have the following > executable file.shell. Why can't the file be found when I want to > execute it ? Have gotten same results using either /bin/ksh or /bin/ > sh. > > Thanks, > Carl > > $: file RSCD741-r2000-SOL8SPARC.SH > RSCD741-r2000-SOL8SPARC.SH: executable shell script > > $: > $: ls -l *RSCD* > -rwx------ 1 carl other 11325495 Apr 14 17:13 RSCD741-r2000- > SOL8SPARC.SH > > $: ./RSCD741-r2000-SOL8SPARC.SH > ksh: ./RSCD741-r2000-SOL8SPARC.SH: not found > > > $: ./*RSCD* > ksh: ./RSCD741-r2000-SOL8SPARC.SH: not found > > > $:/bin/sh > $:ls -l RSCD741-r2000-SOL8SPARC.SH > -rwx------ 1 carl other 11325495 Apr 14 17:13 RSCD741-r2000- > SOL8SPARC.SH > > $: ./RSCD41-r2000-SOL8SPARC.SH > ./RSCD741-r2000-SOL8SPARC.SH: not found Look at the first line. There's likely a typo in the #! entry. Colin
From: cnurbw on 16 Apr 2008 11:25 On Apr 16, 11:19 am, "Colin B." <cbi...(a)somewhereelse.shaw.ca> wrote: > cnu...(a)yahoo.com wrote: > > Hi, > > I'm on a Solaris 10 system and I have the following > > executable file.shell. Why can't the file be found when I want to > > execute it ? Have gotten same results using either /bin/ksh or /bin/ > > sh. > > > Thanks, > > Carl > > > $: file RSCD741-r2000-SOL8SPARC.SH > > RSCD741-r2000-SOL8SPARC.SH: executable shell script > > > $: > > $: ls -l *RSCD* > > -rwx------ 1 carl other 11325495 Apr 14 17:13 RSCD741-r2000- > > SOL8SPARC.SH > > > $: ./RSCD741-r2000-SOL8SPARC.SH > > ksh: ./RSCD741-r2000-SOL8SPARC.SH: not found > > > $: ./*RSCD* > > ksh: ./RSCD741-r2000-SOL8SPARC.SH: not found > > > $:/bin/sh > > $:ls -l RSCD741-r2000-SOL8SPARC.SH > > -rwx------ 1 carl other 11325495 Apr 14 17:13 RSCD741-r2000- > > SOL8SPARC.SH > > > $: ./RSCD41-r2000-SOL8SPARC.SH > > ./RSCD741-r2000-SOL8SPARC.SH: not found > > Look at the first line. There's likely a typo in the #! entry. > > Colin I think I found it. Instead of doing ./RSCD741-r2000-SOL8SPARC.SH I need to do " sh RSCD741-r2000-SOL8SPARC.SH" . And before I do that , I need to run the "dos2unix" command. It was copied from a PC that added the ^M characters. Thanks for your help, Carl
From: Gary Mills on 16 Apr 2008 11:27 In <TNoNj.58520$Cj7.26326(a)pd7urf2no> "Colin B." <cbigam(a)somewhereelse.shaw.ca> writes: >cnurbw(a)yahoo.com wrote: >> I'm on a Solaris 10 system and I have the following >> executable file.shell. Why can't the file be found when I want to >> execute it ? Have gotten same results using either /bin/ksh or /bin/ >> sh. >> $: ./RSCD41-r2000-SOL8SPARC.SH >> ./RSCD741-r2000-SOL8SPARC.SH: not found >Look at the first line. There's likely a typo in the #! entry. DOS line endings, instead of Unix, is the usual problem. -- -Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
|
Pages: 1 Prev: how to rename the console in solaris? Next: LDAP: read-only group permission |