Vinord Anand on Fri, 27 Dec 2002 16:41:05 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] running shell scripts


I'm trying to run a shell script but it says

[root@localhost sm56]# srcprep
bash: srcprep: command not found

[root@localhost sm56]# $PATH
bash: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:
/usr/X11R6/bin:/root/bin: No such file or directory

my default shell is borne shell
[root@localhost sm56]# env |grep bash
BASH_ENV=/root/.bashrc
SHELL=/bin/bash

[root@localhost sm56]# ls -ltr /bin |grep bash
-rwxr-xr-x    1 root     root       541096 Apr 13  2002 bash
lrwxrwxrwx    1 root     root            4 Nov 26 04:47 sh -> bash
lrwxrwxrwx    1 root     root            4 Nov 26 04:47 bash2 -> bash

the script has directives to use bash to execute script

#!/bin/bash
# Kernel Source Prep (srcprep) , for RedHat 7.x distros
# Offered freely, use at your own risk
# - Bob Arendt 4/02/2002 Original
# - Bob Arendt 5/18/2002 Updated for RedHat 7.3
#
/bin/cat <<EOF
................

I'm looged in as root and srcprep script is executable.

[root@localhost sm56]# ls -ltr s*
-rwxr-xr-x    1 root     root         6654 Dec 27 20:17 sm56setup
-rwxr-xr-x    1 root     root         4990 Dec 27 20:17 srcprep
-rw-r--r--    1 root     root       583251 Dec 27 20:21
sm56-85.1-10.i386.rpm
-rw-r--r--    1 root     root      1652253 Dec 27 20:38 sm56.lib


srcprep is in directory (/root/sm56) that is not in my PATH variable.
So is sm56setup,another bash script which runs fine!!!

#!/bin/bash
# sm56setup
# working folder
SM56DIR=/root/sm56
mkdir -p $SM56DIR

cat<<END
..................

I'm trying to run srcprep to solve depmod:unresolved symbol errors that
occurs when trying to run sm56setup (to install sm56 modem drivers).

Any help would be appreciated.

vin

_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug