Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Thanks. At "f=$(basename $1)" I get error saying permission denied. I have created a new shell script with this code and I am calling this code callf2py from the original code. Permission for all the files are okay. Commented Jun 7, 2015 at 22:26
  • post your command, the script you created, and the output. the answer works fine for me. Commented Jun 8, 2015 at 0:56
  • I have created a shell script callf2py.sh which has the following code: #!/bin/sh f= $(basename $1) f2py -h $f.pyf -m $f $f.f90 In my main script I am using following: find "$main_dir/source_code/3DBGB/" . -name '*.f90' -exec $main_dir/callf2py.sh {} \; Commented Jun 8, 2015 at 16:34
  • Sorry I am not able to edit my above comment properly. Commented Jun 8, 2015 at 16:37
  • 1
    it's hard to tell from your unformatted comment; can you show a sample run with the error? you might have an extra space between f= and $(basename $1) Commented Jun 9, 2015 at 0:11