[cs615asa] HW2 bash problem
Rob Richard
rrichar1 at stevens.edu
Tue Mar 24 13:14:49 EDT 2009
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
>
More information about the Cs615asa
mailing list