Mac OSX command line

Hi, i’m following the script to setup a batch process here

http://www.blender.org/manual/render/workflows/command_line.html

I have inputed everything as explained, first:

echo “alias blender=//Applications/blender-2.75/Blender/blender.app/Contents/MacOS/blender” >> ~/.profile

which seems fine, then

blender -b /Users/gavincampbell/side_left_view.blend -x 1 -o //render -a

However when i execute this command i get the error

-bash: //Applications/blender-2.75/Blender/blender.app/Contents/MacOS/blender: No such file or directory
Gavins-iMac:blender-2.75 gavincampbell$

What am i doing wrong ??

Set alias:
alias blender=’/Applications/blender-2.75/Blender/blender.app/Contents/MacOS/blender’
Check alias:
> alias
alias blender=/Applications/blender-2.75/Blender/blender.app/Contents/MacOS/blender

There is an limitation i forgot atm., must lookup how to get your command at once later …
Edit: so if you wanna set the alias and same time log this to .profile:

alias blender=’/Applications/blender-2.75/Blender/blender.app/Contents/MacOS/blender’ && alias blender >> ~/.profile

Jens

ok i got it working. I used:

echo “alias blender=/Applications/blender-2.75/blender.app/Contents/MacOS/blender” >> ~/.profile

then

blender -b /Users/gavincampbell/Views/bike_bluematerialimage_testi.blend -x 1 -a

However, on mac terminal the && command for multiple commands doesn’t work. On a pc you could put for example:

blender -b “C:\path o\file.blend” -x 1 -a && blender -b “C:\some\other\project.blend” -x 1 -a && blender -b “C:\yes\another\one.blend” -x 1 -a

but the ‘&&’ doesn’t work, it renders the first file only.

The && works, i used the every day for :
git pull --rebase && git submodule foreach git pull --rebase origin master

Try my updated dual command. But if yours worked now … why bother :wink:

Jens