View Full Version : newbie linux help
sneeze
04-02-2002, 07:16 PM
Hello...I recently bought a Hughes GXCEBOTD receiver with 25Extreme already loaded. I've done a little reading and have gotten bash configured and working. I tried to run my first script tonight and am running into a problem. I copied the SC.TCL script to my /var/hack dir and did a CHMOD +x sc.tcl. When I list the file it looks like this:
bash-2.02# ls -l sc.tcl
-rwx--x--x 1 0 0 1947 Mar 12 22:14 sc.tcl
I then try to run it like this:
bash-2.02# ./sc.tcl
bash: ./sc.tcl: No such file or directory
bash-2.02#
Any idea what I am doing wrong? I know it's something stupid. Any help would be greatly appreciated.
BBQ-AllStar
04-02-2002, 07:32 PM
sneeze,
are you in the /var/hack dir? you need to be in the same dir as the file you are trying to run.
bash-2.02# cd /var/hack
bash-2.02# . /sc.tcl
or I think you can just
bash-2.02# . /var/hack/sc.tcl
Hope this helps...
BBQ
superzap
04-02-2002, 08:12 PM
Your problem is that you need to observe upper/lower case since linux is case sensitive with file names.
Use SC.TCL not sc.tcl.
GL
sneeze
04-02-2002, 08:28 PM
BBQ...yes I was in the /var/hack directory. I tried all CAPS also. Here is the paste from my last attempt:
bash-2.02# pwd
/var/hack
bash-2.02# ls -l s*
-rwx--x--x 1 0 0 1947 Mar 12 22:14 sc.tcl
-rwxr-xr-x 1 0 0 130308 Nov 14 19:00 strace
bash-2.02# ./SC.TCL
bash: ./SC.TCL: No such file or directory
bash-2.02#
superzap
04-02-2002, 09:13 PM
This is what SC.TCL should look like after a ls -la command:
-rwxr-xr-x 1 1003 513 1908 Mar 12 18:18 SC.TCL
Notice the size is 1908 and the name is in caps. You must have a corrupt file. Re-download it. Make sure you don't edit it with a windows editor. Transfer it to the /var/hack dir using Tera Term ZMODEM:
enter
rz -y
then File->Transfer->ZMODEM->Send (select file then Open)
chmod +x SC.TCL
./SC.TCL
sneeze
04-03-2002, 01:03 AM
zap:
That worked. Needed to use TeraTerm ZMODEM. Thanks!
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.