how do you get a script to run

Chris racerx at makeworld.com
Sat Nov 1 12:48:13 PST 2003


On Saturday 01 November 2003 02:37 pm, Chris Hill wrote:
> On Sat, 1 Nov 2003, Gregory Stearns wrote:
> > I know I am retarded, how ever I can not get the script I wrote to run
> > on Free BSD 4.7.
>
> 1) Make sure it has execute permissions set (man chmod)
>
> 2) Make sure it's in a directory specified in your PATH variable.
> Usually username/bin/ is a good place to put scripts. Alternatively, cd
> to the directory where the script is and do a
>    ./myscript.sh
>
> HTH.

Alternatively,  use the explicate path with the name of the script.
for example:

/usr/home/mayname/scripts/scriptname


>
> --
> Chris Hill               chris at monochrome.org
> **                     [ Busy Expunging <|> ]
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"

-- 

Best regards,
                 Chris
______________________________________________________________________

PGP Fingerprint = D976 2575 D0B4 E4B0 45CC AA09 0F93 FF80 C01B C363

PGP Mail encouraged / preferred - keys available on common key servers
______________________________________________________________________
       01010010011000010110001101100101011100100101100000000000




More information about the freebsd-questions mailing list