[cs615asa] HW2 bash problem
Jianhua Yao
jyao1 at stevens.edu
Tue Mar 24 13:52:57 EDT 2009
That's great, thanks for the help.
Jianhua Yao
----- Original Message -----
From: "Chih-Yuan Lee" <clee9 at stevens.edu>
To: "CS615A - Aspects of System Administration" <cs615asa at lists.stevens.edu>
Sent: Tuesday, March 24, 2009 1:32 PM
Subject: Re: [cs615asa] HW2 bash problem
> Hi
>
> Thanks for your help!!
>
>
>
> Rob Richard wrote:
>
>
>>You can use the env utility to avoid the problem of the tools being
>>located in different locations.
>>
>>For example, if you start your script like this:
>>
>>#!/usr/bin/env bash
>>
>>env will find the location of bash from the PATH environmental variable.
>>
>>
>>Chih-Yuan Lee wrote:
>>> Hi,
>>>
>>> I think there is no problem to run bash script.
>>>
>>> But the bash is located at different directory (under the
> /usr/pkg/bin)
>>> at lab.cs.stevens.edu.
>>>
>>> I have the same problem for that using perl. So if we want to execute
>>> the script except shell script, we need to change #!/usr/bin/bash to
>>> #!/usr/pkg/bin/bash.
>>> I am not sure if we just submit the program using #!/usr/bin/bash, is
>>> it ok or not? Or does anyone have any idea for this problem??
>>>
>>>
>>>
>>> Thanks,
>>> Lee
>>>
>>>
>>> Jianhua Yao wrote:
>>>
>>>
>>>
>>>> Hi,
>>>>
>>>> Is it possible to run bash script on all of the three systems?
>>>>
>>>> Thanks.
>>>> Jianhua Yao
>>>> _______________________________________________
>>>> Cs615asa mailing list
>>>> Cs615asa at lists.stevens.edu
>>>> https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs615asa
>>>>
>>>>
>>> _______________________________________________
>>> Cs615asa mailing list
>>> Cs615asa at lists.stevens.edu
>>> https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs615asa
>>>
>>
>>_______________________________________________
>>Cs615asa mailing list
>>Cs615asa at lists.stevens.edu
>>https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs615asa
>>
> _______________________________________________
> Cs615asa mailing list
> Cs615asa at lists.stevens.edu
> https://lists.stevens.edu/cgi-bin/mailman/listinfo/cs615asa
>
More information about the Cs615asa
mailing list