Page 1 of 1
Fred's Script - How do i run it in linux?
Posted: 2013-02-04T01:23:28-07:00
by agriz
Code: Select all
sh 3Dbox.sh -help
3Dbox.sh: line 205: type: 3Dbox.sh: not found
dirname: missing operand
Try `dirname --help' for more information.
basename: missing operand
Try `basename --help' for more information.
How do i fix this error?
Re: Fred's Script - How do i run it in linux?
Posted: 2013-02-04T11:03:55-07:00
by fmw42
It should not cause a problem if you actually give proper arguments and images. But you can avoid those messages by putting the path to the script's directory into your PATH. The "type" command in the file cannot find the path to the script to use to get the script basename, etc for the error reporting. But the script will run anyway.
Re: Fred's Script - How do i run it in linux?
Posted: 2013-02-04T12:17:49-07:00
by agriz
I am having trouble in giving the proper commands.
I got the following error when i try to run the script.
Code: Select all
NUMBER OF INPUT IMAGES MUST BE EITHER 3 OR 6
So i tried to use the help option.
It is desktop. it is located in /var/www/html/fred_script/3dbox/
EDIT
Code: Select all
sh 3Dbox.sh pan=45 tilt=-30 pef=0.5 filter=point images/box_im_front.jpg images/box_im_spine.jpg images/box_im_top.jpg
This is how i tried to run the script. But i guess, I am not passing the arguments in the right way.
Can you tell me how can i do that? I fixed that error by typing the file in PROGNAME directly.
Re: Fred's Script - How do i run it in linux?
Posted: 2013-02-04T12:43:48-07:00
by agriz
I am for those troubles. I did not give the output file. That is why i got that error.
It is working very perfectly.
Thanks