Re: how do you get a script to run

2003-11-01 Thread Chris
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   [EMAIL PROTECTED]
> ** [ Busy Expunging <|> ]
>
>
> ___
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

-- 

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
__
   01010010011101100011011001010111001001011000


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how do you get a script to run

2003-11-01 Thread Chris Hill
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.

--
Chris Hill   [EMAIL PROTECTED]
** [ Busy Expunging <|> ]


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how do you get a script to run

2003-11-01 Thread Lowell Gilbert
"Gregory Stearns" <[EMAIL PROTECTED]> writes:

> I can not get the script I wrote to run on Free BSD 4.7.

If it is an sh-type script, then "sh " should work,
regardless of how anything else is configured.  If it is a csh-type
script, "csh " should work.

There are a lot of other things you should know along this line; 
a decent tutorial on shell scripting would be a good place to start.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"