looks like this script was edited with a word processor and contains
formating that are causing problems as ascii text file. Open this file
again with a word processor, copy it into a plain ascii text editor and
save t again (as plain text). Do not edit programs with a Word processor.
hope this helps,
wolf
Leslie Engineering wrote:
> Sorry :)
>
> So this is what I get :
>
>
> bash-3.2$ chmod +x script_name.sh
> bash-3.2$ ./script_name.sh
> ./sta.sh: line 1: {rtf1ansiansicpg1252cocoartf1038cocoasubrtf350:
> command not found
> ./sta.sh: line 2: syntax error near unexpected token `}'
> ./sta.sh: line 2: `{\fonttbl\f0\fswiss\fcharset0 Helvetica;}'
>
>
>
> I don't know how to interpret!
>
> On Tue, Aug 2, 2011 at 10:10 AM, Cunningham, Dustin
> <[log in to unmask] <mailto:[log in to unmask]>> wrote:
>
> It looks like your file is a bash shell script. I think you can
> just give it executive privileges and run it in the terminal.
>
> try this:
>
> chmod +x filename
> ./filename
> ________________________________________
> From: FSL - FMRIB's Software Library [[log in to unmask]
> <mailto:[log in to unmask]>] On Behalf Of Leslie Engineering
> [[log in to unmask] <mailto:[log in to unmask]>]
> Sent: Tuesday, August 02, 2011 9:27 AM
> To: [log in to unmask] <mailto:[log in to unmask]>
> Subject: [FSL] running a script with FSL
>
> A colleague sent a single trial analysis script that he says "runs
> with FSL 4.0 and above"
>
> How do you run a script with fsl?
>
> I set the path in xterm:
>
> export PATH="$PATH:~/scripts_folder"
>
> and tried to source the file
>
> source script_name.sh
>
> (clearly computers are not like the back of my hand...)
>
> Is there something in the fsl gui where I can automatically select
> the script.. because I am unable to do it in the terminal prompt.
>
>
|