bash: ./<scriptname>: No such file or directory


 
Thread Tools Search this Thread
Operating Systems Solaris bash: ./<scriptname>: No such file or directory
# 1  
Old 06-28-2007
Network bash: ./<scriptname>: No such file or directory

I have simply downloaded a file to my local folder, made one small change and uploaded it back, ever since it will not run the file.
I have now uploaded the original, unchanged file, which still doesn;t work.
Evertime it is run ot says bash: ./nrcardprint: No such file or directory
The permissions are ok, set to rwxr - xr - r.
Please help, frustrating the hell out of me now.
I have since downloaded another file, which worked, renamed it then uploaded it. . . surprise surprise, this doesn't work now either. Could there be a problem with FTP (I use Smart FTP).

Thanks
Heidi
# 2  
Old 06-28-2007
You just need to invoke :
./script-name
or
bash scriptname
since you have assured that the file has executable permissions set.
Actually, if you still running into troubles, can you please post the output of "ls -la"
# 3  
Old 06-28-2007
Network

THE OUTPUT OF LS - LA:

-rwxr-xr-x 1 root other 9714 Apr 15 2005 hb.now
-rwxr-xr-x 1 aisdba academy 2001 Aug 28 2003 hb.remittances
-rw-r--r-- 1 aisdba academy 42089 Mar 18 2005 hb002-1.out
-rw-r--r-- 1 aisdba academy 218 Mar 18 2005 hb002-1.sql
-rw-r--r-- 1 aisdba academy 271 Mar 18 2005 hb002-2.sql
-rw-r--r-- 1 aisdba academy 244 Mar 18 2005 hb002-3.sql
-rw-r--r-- 1 aisdba academy 301 Mar 18 2005 hb002-4.sql
-rwxr-xr-x 1 aisdba academy 627 Jul 20 2000 hb6030_aisreport.compare
-rwxr-xr-x 1 aisdba academy 3527 Oct 23 2002 hb7070.labels
-rwxr-xr-x 1 aisdba academy 853 Feb 26 2003 hb7250.addresses
-rwxr-xr-x 1 aisdba academy 754 Feb 26 2003 hb7340.addresses
-rwxr-xr-x 1 aisdba academy 8191 Jan 17 2001 hb_live_ct.labels
-rw-r--r-- 1 aisdba academy 1454 Jan 9 2001 hb_live_ct.labels.txt
-rw-r--r-- 1 aisdba academy 1296 Apr 4 14:44 hb_report.syd
-rwxr-xr-x 1 root other 6738 Jan 12 2005 hbcheques.labels
-rwxr-xr-x 1 root other 550 Nov 9 2005 hbchq.to.fn
-rwxr-xr-x 1 aisdba academy 515 Feb 14 2001 hbclaim_transid
-rwxr-xr-x 1 root other 5618 Jul 13 2006 hbcreditor.remittances
-rwxr-xr-x 1 root other 959 Jan 12 2005 hbcremletter.reprint
-rwxr-xr-x 1 aisdba academy 13608 Jan 12 2005 hbctarcdocs
-rwxr-xr-x 1 aisdba academy 2440 Dec 13 2004 hbctprint
-rwxr-xr-x 1 aisdba academy 1833 Mar 11 2003 hbctprintben
-rwxr-xr-x 1 aisdba academy 1674 Feb 6 2004 hbctrearcdocs
-rwxr-xr-x 1 aisdba academy 1533 Feb 5 2004 hbctunarcdocs
-rwxr-xr-x 1 aisdba academy 823 Mar 11 2002 hbenletters.eoy
-rwxr-xr-x 1 aisdba academy 691 Apr 22 2005 hbexcess
-rwxr-xr-x 1 root other 6603 Mar 23 2005 hbintervention.labels
-rwxr-xr-x 1 root other 1894 Feb 23 2006 hbletters.65to60
-rwxr-xr-x 1 root other 1247 Jun 18 2004 hbletters.padto60
drwxr-xr-x 2 aisdba academy 512 Nov 11 2003 hbll.safe
-rwxr-xr-x 1 aisdba academy 682 Apr 22 2005 hbmember
-rwxr-xr-x 1 root other 3051 Sep 24 2004 hbmshbsdftp
-rwxr-xr-x 1 aisdba academy 5528 Mar 14 2003 hbnewrents.eoy
-rw-r--r-- 1 aisdba academy 65 Mar 13 2002 hbnewrents.eoy.sed
-rwxr-xr-x 1 aisdba academy 10084 Mar 20 2003 hbnewrents.with.supported
-rwxr-xr-x 1 aisdba academy 9454 Mar 20 2003 hbnewrents.without.supported
-rwxr-xr-x 1 aisdba academy 1560 Jul 30 2003 hbremittances
-rw-r--r-- 1 aisdba academy 18 Jul 30 2003 hbremittances.info
-rwxr-xr-x 1 aisdba academy 1560 Jul 30 2003 hbremittances.isit.needed
-rwxr-xr-x 1 aisdba academy 1904 Feb 22 2000 hbrent_addr
-rwxr-xr-x 1 aisdba academy 777 Feb 10 2000 hbrent_propref
-rw-r--r-- 1 root other 142 Sep 2 2004 hbrentacc.check
-rwxr-xr-x 1 root other 10362 Jun 2 2005 hbrentacc.chiltern
-rwxr-xr-x 1 aisdba academy 6365 Jan 12 2004 hbrentacc.chiltern.initialload
-rwxr-xr-x 1 root other 1359 Jun 2 2005 hbrentacc.copyout
-rwxr-xr-x 1 root other 27147 Sep 6 2004 hbrentacc.enh
-rw-r--r-- 1 root other 235 Sep 9 2004 hbrentacc.enh.sed
-rwxr-xr-x 1 aisdba academy 203 Mar 14 2005 hbrentacc.enh2005.sed
-rwxr-xr-x 1 aisdba academy 6000 Mar 11 2004 hbrentacc.enh_names
-rw-r--r-- 1 aisdba academy 2804 Aug 5 2003 hbrentacc.enh_names.awk
-rwxr-xr-x 1 aisdba academy 1222 Aug 5 2003 hbrentacc.enh_names.compare
-rw-r--r-- 1 aisdba academy 81 Aug 5 2003 hbrentacc.enh_surname.sed
-rw-r--r-- 1 aisdba academy 225 Aug 5 2003 hbrentacc.enh_title.sed
-rwxr-xr-x 1 aisdba academy 6625 Mar 8 2005 hbrentacc.load2005tables
-rwxr-xr-x 1 root other 6563 Apr 20 2004 hbrentacc.loadtables
-rwxr-xr-x 1 aisdba academy 407 Jun 2 2005 hbrentacc.update
-rwxr-xr-x 1 aisdba academy 10366 Feb 28 2005 hbrentacc2005.chiltern
-rwxr-xr-x 1 aisdba academy 300 Jun 21 2005 hbrentacc2005.update
-rwxr-xr-x 1 aisdba academy 1656 Feb 21 2000 hbrents.addr
-rwxr-xr-x 1 aisdba academy 1002 Jul 26 2002 hbrepsindex
-rwxr-xr-x 1 aisdba academy 613 Apr 22 2005 hbunder_entitlement
-rwxr-xr-x 1 root other 2041 Sep 15 2004 highriskftp
drwxr-xr-x 2 aisdba academy 1024 Nov 10 2006 history
-rwxr-xr-x 1 root other 3148 Mar 9 2004 idox.xfer
-rwxr-xr-x 1 root other 2763 Mar 9 2004 idox.xfer_1
-rwxr-xr-x 1 root other 3257 Mar 9 2004 idox11
-rwxr-xr-x 1 root other 2817 Mar 9 2004 idox2
-rwxr-xr-x 1 root other 88 Mar 9 2004 idoxall
drwxr-xr-x 3 aisdba academy 512 Jun 27 2006 im
-rwxr-xr-x 1 aisdba academy 3550 Feb 10 2000 imcustomer.to.print
-rwxr-xr-x 1 root other 497 Nov 23 2005 imreform
-rwxr-xr-x 1 aisdba academy 687 May 21 2001 isql_crlivedb
-rwxr-xr-x 1 aisdba academy 706 Feb 8 2005 isql_hbctlivedb
-rwxr-xr-x 1 aisdba academy 696 Feb 8 2005 isql_imlivedb
-rwxr-xr-x 1 aisdba academy 696 Jan 11 2005 isql_nrlivedb
-rwxr-xr-x 1 root other 1898 Jan 12 2005 jnl_purge
-rwxr-xr-x 1 root other 829 Sep 15 2004 landlordsreport
-rwxr-xr-x 1 aisdba academy 1539 Jun 23 2000 lastckps
-rwx------ 1 aisdba academy 2136 Feb 26 2004 level_os_ufsdump
-rwxr-xr-x 1 aisdba academy 1379 Jan 9 2001 lineup.labels
-rwxr-xr-x 1 aisdba academy 300 May 14 2004 listpareportfiles
-rwxr-xr-x 1 aisdba academy 308 Jun 12 2003 listvoucherfiles
-rwxr-xr-x 1 aisdba academy 3451 Jul 8 2002 livehbs_excel
-rw-r--r-- 1 aisdba academy 604 Jul 8 2002 livehbs_excel.sed
-rwxr-xr-x 1 aisdba academy 1564 Jul 30 2003 llord.datafile
-rwxr-xr-x 1 aisdba academy 1564 Jul 30 2003 llordfloppy
-rwxr-xr-x 1 aisdba academy 549 May 21 2001 lsjndsql_crlivedb
-rwxr-xr-x 1 aisdba academy 555 Jan 6 2000 lsjndsql_hbctlivedb
-rwxr-xr-x 1 aisdba academy 549 May 21 2001 lsjndsql_imlivedb
-rwxr-xr-x 1 aisdba academy 548 Jan 6 2000 lsjndsql_nrlivedb
-rwxr-xr-x 1 aisdba academy 3606 Apr 3 2001 make.ddfile
-rwxr-xr-x 1 aisdba academy 3136 Apr 12 2000 make.ddfileRESTORE
-rwxr-xr-x 1 aisdba academy 2283 Mar 9 2001 make.nrddfile
-rwxr-xr-x 1 aisdba academy 2049 Jan 14 2004 map_iminvoices
-rw-r--r-- 1 aisdba academy 654 May 21 2001 Menu.001
-rw-r--r-- 1 aisdba academy 657 May 21 2001 Menu.002
-rw-r--r-- 1 aisdba academy 666 Jan 6 2000 Menu.003
-rw-r--r-- 1 aisdba academy 654 May 21 2001 Menu.004
-rwxrwxrwx 1 aisdba academy 567 Mar 20 2000 Menu.005
-rwxr-xr-x 1 aisdba academy 537 May 6 2003 Menu.010
-rw-r--r-- 1 aisdba academy 471 May 13 2003 Menu.011
-rw-r--r-- 1 aisdba academy 572 May 14 2003 Menu.012
-rw-r--r-- 1 aisdba academy 305 May 13 2003 Menu.014
-rw-r--r-- 1 root other 323 Jul 1 2004 Menu.ackp
-rw-r--r-- 1 aisdba academy 390 Jul 3 2003 Menu.amisc
-rw-r--r-- 1 root other 302 Jul 1 2004 Menu.arest
-rw-r--r-- 1 root other 263 Jun 30 2004 Menu.aspec
-rw-r--r-- 1 aisdba academy 1781 Apr 27 2006 Menu.ctax
-rw-r--r-- 1 root other 551 Mar 16 2006 Menu.ctaxeoy
-rw-r--r-- 1 aisdba academy 1526 Sep 22 2004 Menu.hben
-rw-r--r-- 1 aisdba academy 572 Mar 17 2006 Menu.nndr
-rwxr-xr-x 1 aisdba academy 744 Feb 26 2004 Menu.print
-rwxr-xr-x 1 aisdba academy 517 Jun 28 2004 Menu.revs
-rw-r--r-- 1 aisdba academy 433 Feb 26 2004 Menu.rmisc
-rwxr-xr-x 1 aisdba academy 1277 Mar 16 2006 Menu.root
-rw-r--r-- 1 root other 192 Jun 28 2004 Menu.rspec
-rw-r--r-- 1 aisdba academy 1019 May 26 2004 Menu.schd
-rwxr-xr-x 1 aisdba academy 766 Jan 21 2005 mike.auto
-rwxr-xr-x 1 aisdba academy 155 Jan 16 2004 mike.auto.txt
-rwxr-xr-x 1 aisdba academy 1121 Mar 15 2006 mjreport
-rwxr-xr-x 1 aisdba academy 297 Sep 5 2000 modissuedate
-rwxr-xr-x 1 aisdba academy 456 Mar 14 2003 modvouchers
-rwxr-xr-x 1 aisdba academy 14275 May 27 2002 natwbank.restorethis
-rw-r--r-- 1 aisdba academy 3061 Sep 18 2006 newcash.chargecodes
-rwxrwxrwx 1 aisdba academy 11052 Jul 28 2006 newcash.debtors.iman
-rwxr-xr-x 1 root other 31317 Sep 29 2006 newcash.run
-rwxr-xr-x 1 root other 33271 Jun 2 2005 newerhbrentacc.enh
-rwxr-xr-x 1 aisdba academy 33347 Jun 15 2005 newerhbrentacc2005.enh
-rwxr-xr-x 1 aisdba academy 4861 Feb 6 2002 newrentext
-rwxr-xr-x 1 aisdba academy 518 Sep 27 2000 newrevuser
-rwxr-xr-x 1 root other 1347 Apr 1 2005 nndr.to.bacs
-rwxr-xr-x 1 aisdba academy 158 Jan 16 2004 nndr.to.bacs.txt
-rw-r--r-- 1 aisdba academy 41788123 Apr 4 16:57 nohup.out
-rwxr-xr-x 1 root other 819 Jan 12 2005 nowreport
-rwxr-xr-x 1 aisdba academy 3692 Mar 14 2000 nr.dds
-rwxr-xr-x 1 aisdba academy 4879 Jan 16 2004 nr.labels
-rwxr-xr-x 1 aisdba academy 3013 Oct 1 2002 nrauddis.to.bacs
-rwxr-xr-x 1 aisdba academy 73 Mar 5 2002 nrbillsreprint3
-rwxr-xr-x 1 aisdba academy 73 Mar 5 2002 nrbillsreprint4
-rwxr-xr-x 1 aisdba academy 73 Mar 5 2002 nrbillsreprint5
-rwxr-xr-x 1 aisdba academy 7054 Jun 28 13:22 nrcardprint
-rwxr-xr-x 1 root other 5362 Feb 21 15:11 nrddprint
-rwxr-xr-x 1 root other 2405 Mar 9 2004 nrdds.from.cards
-rwxr-xr-x 1 root other 8619 Mar 9 2004 nrdds.from.cards_1
-rwxr-xr-x 1 root other 4055 Mar 9 2004 nrdds.from.cards_2
-rwxr-xr-x 1 aisdba academy 72 Mar 5 2002 nrdebitsreprint
-rwxr-xr-x 1 aisdba academy 1046644 Sep 12 2001 nreast1
-rwxr-xr-x 1 root other 2599 Jan 12 2005 nrvo.to.csv
-rwxr-xr-x 1 aisdba academy 2215 Jan 22 09:52 nrvo.to.csv.rel42
-rwxr-xr-x 1 aisdba academy 3611 Feb 25 2004 nrvoucher.run
-rwxr-xr-x 1 aisdba academy 3015 Nov 21 2003 nrvoucher.run.menu
-rwxr-xr-x 1 root other 13801 Apr 28 2006 nrvoucherprint
-rwxr-xr-x 1 aisdba academy 14420 Jun 28 15:54 nrvoucherprintx
-rwxr-xr-x 1 aisdba academy 5382 Oct 2 2006 old_ddeb_records.sh
-rwxr-xr-x 1 aisdba academy 1033 Aug 10 2000 orch
-rwxr-xr-x 1 aisdba academy 9167 Aug 5 2003 paradigm.update
-rwxr-xr-x 1 aisdba academy 1091 Aug 23 2006 pareport
-rwxr-xr-x 1 aisdba academy 1247 Mar 22 2004 paveyletters
-rwxr-xr-x 1 root other 1633 Jul 25 2006 payslips
-rwxr-xr-x 1 root other 2041 Jun 25 2004 payslips.fn
-rwxr-xr-x 1 root other 921 Dec 21 2005 performancereportstats
-rwxr-xr-x 1 root other 2607 Sep 29 2005 performancestats
drwxr-xr-x 2 aisdba academy 6656 Jul 21 2006 peter_old
-rwxr-xr-x 1 aisdba academy 883 May 21 2001 pgjndsql_crlivedb
-rwxr-xr-x 1 aisdba academy 889 Jan 6 2000 pgjndsql_hbctlivedb
-rwxr-xr-x 1 aisdba academy 883 May 21 2001 pgjndsql_imlivedb
-rwxr-xr-x 1 aisdba academy 883 Jan 6 2000 pgjndsql_nrlivedb
-rwxr-xr-x 1 aisdba academy 362 Oct 30 2000 print.bencash
-rwxr-xr-x 1 aisdba academy 3698 Sep 18 2003 print.hbctarc.reps
-rwxr-xr-x 1 aisdba academy 7694 Apr 13 2000 printcheque
-rwxr-xr-x 1 aisdba academy 1936 Mar 2 2000 printcheque.orig
-rwxr-xr-x 1 aisdba academy 5578 Jan 18 2001 printcheques
-rw-r--r-- 1 aisdba academy 78 Jan 3 2001 printcheques.egrep
-rwxr-xr-x 1 root other 6544 Jul 7 2004 printcheques.menu
-rwxr-xr-x 1 aisdba academy 416 Oct 23 2000 printerfix
-rwxr-xr-x 1 aisdba academy 742 May 28 2003 printerfix.menu
-rwxr-xr-x 1 aisdba academy 364 Jun 30 2000 printfile
-rwxr-xr-x 1 aisdba academy 515 Aug 14 2006 printingcheck
-rwxr-xr-x 1 root other 10 May 28 2004 printjobs
-rwxr-xr-x 1 aisdba academy 673 Feb 7 2000 printq
-rwxr-xr-x 1 root other 10636 Mar 9 2004 psddprint.menu
-rwxr-xr-x 1 root other 1333 Sep 13 2004 pss
-rwxr-xr-x 1 aisdba academy 686 Dec 18 2003 pss1
-rwxr-xr-x 1 aisdba academy 10277 Mar 16 2006 psseoyctcardprintTJ
-rwxr-xr-x 1 root other 124 Mar 16 2006 psseoyctcardprintTJ.menu
-rwxr-xr-x 1 aisdba academy 10396 Mar 16 2006 psseoyctddprintTJ
-rwxr-xr-x 1 root other 111 Mar 16 2006 psseoyctddprintTJ.menu
-rwxr-xr-x 1 root other 9157 Mar 16 2006 psseoyctvoucherprintTJ
-rwxr-xr-x 1 root other 7801 Aug 24 2004 psshbrentacc.loadtables
-rwxr-xr-x 1 aisdba academy 6893 Jan 13 2004 pssloadtables
-rwxr-xr-x 1 aisdba academy 3876 Oct 9 2001 random.hbclaimids
-rw-r--r-- 1 aisdba academy 1260 Jul 26 2000 random.nos.2000_1.Q1
-rw-r--r-- 1 aisdba academy 1260 Nov 7 2000 random.nos.2000_1.Q2
-rw-r--r-- 1 aisdba academy 980 Jan 17 2001 random.nos.2000_1.Q3
-rw-r--r-- 1 aisdba academy 1170 Apr 12 2001 random.nos.2000_1.Q4
-rw-r--r-- 1 aisdba academy 1260 Jul 4 2001 random.nos.2001_2.Q1
-rw-r--r-- 1 aisdba academy 1170 Oct 9 2001 random.nos.2001_2.Q2
-rwxr-xr-x 1 aisdba academy 253 Jun 21 2000 rcp_orchnames
-rw-r--r-- 1 777 other 7 Apr 16 15:04 rebootserver
-rwxr-xr-x 1 aisdba academy 547 Feb 26 2004 recron
-rwxr-xr-x 1 aisdba academy 3784 Sep 28 2000 redo.rentpost
-rwxr-xr-x 1 aisdba academy 906 Apr 17 2003 referals.ptds
-rwxr-xr-x 1 root other 242 Apr 14 2004 renamefiles
-rwxr-xr-x 1 aisdba academy 426 Mar 1 2002 rentext.missing.tenancies
-rwxr-xr-x 1 aisdba academy 3798 Apr 4 2001 rentpost.to.benfile
-rwxr-xr-x 1 aisdba academy 5943 Jul 5 2001 rentpost.to.orchard
-rw-r--r-- 1 aisdba academy 259 Jan 30 2005 rentstat.log
-rwxr-xr-x 1 aisdba academy 754 Aug 10 2000 reprint.hbct
-rwxr-xr-x 1 aisdba academy 840 Oct 10 2001 reruncronjobs
-rwxr-xr-x 1 aisdba academy 312 Jun 5 2000 restart
-rwxr-xr-x 1 aisdba academy 404 Aug 11 2004 restore.tape
-rwxr-xr-x 1 root other 6040 Mar 17 2006 restoredb
-rwxr-xr-x 1 aisdba academy 287 Jan 13 2000 revuser
-rwxr-xr-x 1 aisdba academy 361 Mar 16 2000 rlpstat
-rwxr-xr-x 1 aisdba academy 932 May 21 2001 rmjndsql_crlivedb
-rwxr-xr-x 1 aisdba academy 938 Jan 6 2000 rmjndsql_hbctlivedb
-rwxr-xr-x 1 aisdba academy 932 May 21 2001 rmjndsql_imlivedb
-rwxr-xr-x 1 aisdba academy 932 Jan 6 2000 rmjndsql_nrlivedb
-rwxr-xr-x 1 aisdba academy 1314 Feb 3 2000 rmvouchers
-rw-r--r-- 1 aisdba academy 116 Dec 15 1999 rollfwddb
-rwxr-xr-x 1 aisdba academy 265 Jun 14 2004 rootmenu
-rwxr-xr-x 1 root other 184 Jun 15 2004 rootuser.header
-rw-r--r-- 1 aisdba academy 2388 Aug 19 2003 runsql.menu
drwxr-xr-x 2 aisdba academy 1024 Jan 27 2004 safe.ctrentext
-rwxr-xr-x 1 root other 135 Aug 11 2004 save
-rwxr-xr-x 1 root other 1518 May 12 2004 scriptheader
-rw-r--r-- 1 aisdba academy 168 Jul 31 2003 somex.sed
-rwxr-xr-x 1 aisdba academy 4009 Jul 21 1999 spacecheck
-rw-r--r-- 1 aisdba academy 63 May 26 2000 spaces.list
-rw-r--r-- 1 aisdba academy 507 May 26 2000 spaces.sed
-rwxr-xr-x 1 aisdba academy 1900 Sep 14 2000 sqlhbpenn
-rwxr-xr-x 1 aisdba academy 2228 Sep 14 2000 sqlhbpennies
drwxr-xr-x 2 aisdba academy 512 Mar 18 2005 sqls
-rwxr-xr-x 1 aisdba academy 613 Jan 11 2005 start_schedulers
-rwxr-xr-x 1 aisdba academy 1318 May 2 2000 startipm
-rwxr-xr-x 1 aisdba academy 256 Feb 27 2004 startjobs.sunrev
-rwxr-xr-x 1 aisdba academy 547 Jan 18 2005 startsched
-rwxr-xr-x 1 aisdba academy 255 Feb 27 2004 stopjobs.sunrev
-rwxr-xr-x 1 aisdba academy 101 Sep 15 2000 stripbenefitin
-rw-r--r-- 1 aisdba academy 189 Sep 15 2000 stripbenefitin.sed
-rw-r--r-- 1 root other 2 May 26 2006 successful
-rwxr-xr-x 1 aisdba academy 603 Jan 21 2005 sue.auto
-rwxr-xr-x 1 aisdba academy 105 Mar 1 2002 sueckp
-rwxr-xr-x 1 root other 3470 Jan 27 2005 sunbackup
-rw-r--r-- 1 root other 485 Aug 24 2004 sunbackup.sed
-rwxr-xr-x 1 root other 633 Oct 28 2005 sunbackup_all
-rwxr-xr-x 1 aisdba academy 2220 Mar 15 2004 tallypadding
drwxr-xr-x 10 aisdba academy 2048 Dec 7 2006 test
-rwxr-xr-x 1 aisdba academy 2308 Mar 30 2000 tidydisk
-rw-r--r-- 1 aisdba academy 73323 Apr 25 2000 typescript
-rwxr-xr-x 1 aisdba academy 187 Nov 15 2000 umount_all
-rwxr-xr-x 1 aisdba academy 669 Feb 4 2004 unloadall
-rwxr-xr-x 1 aisdba academy 51 Feb 26 2004 unmountcd
-rw-r--r-- 1 aisdba academy 208 Aug 8 2003 uppercase.sed
-rwxr-xr-x 1 aisdba academy 57 Jun 28 2000 viewreports
-rwxrwxrwx 1 aisdba academy 2479 Oct 5 2006 vo_away_address.sh
-rwxr-xr-x 1 root other 11141 Aug 16 2004 voucherprint
-rw-r--r-- 1 aisdba academy 3634 Apr 16 2004 voucherprint.sed
-rwxr-xr-x 1 aisdba academy 6888 Feb 11 2002 warmdds
-rwxr-xr-x 1 root sys 153 Apr 16 2004 worldtime
-rw-r--r-- 1 aisdba academy 152 Aug 8 2003 zeros.sed


When I invoke it, it still says the same error:
sunrev aisdba :: TS >./nrcardprint
bash: ./nrcardprint: No such file or directory
sunrev aisdba :: TS >

As you can see, it will list the file, but can not find it to run.

Thanks
Heidi
# 4  
Old 06-28-2007
Quote:
Originally Posted by Heidi.Ebbs
I have simply downloaded a file to my local folder, made one small change and uploaded it back, ever since it will not run the file.
Let me guess, you download the file to a Windows machine and used some windows editor such as notepad.exe to make the changes, then put it back again?

If this is the case you may now have carriage return characters in your file that would upset the interpretation.
# 5  
Old 06-29-2007
Network bash: ./<scriptname>: No such file or directory

I have opened the file in vi, checked it all over and saved it as a new filename nrcardprint1

I then changed the permissions to execute, and ..... still produces same error message 'no such file or directory:

sunrev aisdba :: TS >./nrcardprint1
bash: ./nrcardprint1: No such file or directory
# 6  
Old 06-29-2007
as stated earlier you probably have dos chars in it.

do cat -vets and you will see them.

use unix2dos to get rid of them
# 7  
Old 06-29-2007
But surely if there was non char characters in the script it would still be able to see the file, but just not interpret properly?

At the moment it still says the file is missing.

In the meantime I will try your previous advice.

Thanks,
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Sourcing file from parent directory bash

"Debian 9 64x - LXDE" I try to source a file from my parent directory: #!/bin/bash #source.bash . ../links.bash but i get "file not found". I tried . "../links.bash" and . '../links.bash'. I got on all methods the same result. If i use the absolute path it works, but i don't want to... (4 Replies)
Discussion started by: int3g3r
4 Replies

2. UNIX for Beginners Questions & Answers

Reading a file from a different directory in a Bash script

Hi all, Given here under a section of a script I am using. SIMDIR="/home/Ins/forces" cd $SIMDIR for file in `ls *.forces` do basename=`echo $file | sed 's/\.*$//'` extname=`echo $file | sed 's/*\(*\)\.\(.*\)/\2\1/'` echo "Processing file: "$basename python convert.py... (4 Replies)
Discussion started by: Theo Score
4 Replies

3. Shell Programming and Scripting

Should I run scripts like sh /absolute_path/to/scriptname.sh or just /absolute_path/to/scriptname.sh

Shell : Linux Bash OS version : RHEL 6.X, Oracle Linux 6.X Question1. To execute shell scripts, sometimes I see Linux admins placing sh command before shell scripts like below sh /home/appadmin/sync_pending_orders.shBut, I execute shell scripts like below ie. Just the absolute path ... (4 Replies)
Discussion started by: John K
4 Replies

4. Shell Programming and Scripting

Bash to select and save file in new directory

I am trying to select a file in bash and save it to a directory. The below does run but no selected file is saved. Thank you :). bash # select file printf "please select a file to analyze with entered gene or genes \n" select file in $(cd... (4 Replies)
Discussion started by: cmccabe
4 Replies

5. Shell Programming and Scripting

Rename specific file extension in directory with match to another file in bash

I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies

6. Shell Programming and Scripting

Bash to delete file in directory

Will the below bash delete all the "snps.ivg" in the given directory? Thank you :) find N:\all_array\Samples -maxdepth 1 -type f -name "snps.ivg" -delete (6 Replies)
Discussion started by: cmccabe
6 Replies

7. Linux

bash:umount/: no such file or directory

I am trying to connect two system (let's say for time being) together such that it supports clustering. for this I got the following packages: # sudo apt-get install pacemaker sysv-rc-conf glusterfs-server glusterfs-examples glusterfs-client chkconfig nmap ntp Next, I did... (0 Replies)
Discussion started by: dr_mabuse
0 Replies

8. Shell Programming and Scripting

#!/bin/bash cannot find file or directory

Hello, When i run a bash script on ubuntu i get this message.. #!/bin/bash cannot find file or directory... Can anibody help me with this, because the file actually exists.... Is there any extra configuration to be made? (5 Replies)
Discussion started by: oliveiraum
5 Replies

9. Shell Programming and Scripting

bash: How to send a file/directory as argument?

Hi, I'd like to make a script where I can send a directory OR files as an argument, and compress them. My proble mis, I do know how to send a directory, but I do not know what to do if there are more than 1 file, I mean I can store the directory in $1, but how do I store 4 files? must I write $1,... (3 Replies)
Discussion started by: lamachejo
3 Replies

10. Shell Programming and Scripting

FIle (directory) test operator (bash)

I'm almost pulling out my hair trying to figure out what's wrong with this... there's no reason I can see that it shouldn't be working. It seems that the code acts as though the conditional statement is true no matter what - I've even tried removing the negation operator, but it always goes into... (5 Replies)
Discussion started by: wildbluefaerie
5 Replies
Login or Register to Ask a Question