Automator start Keepass

Joined
Jun 14, 2014
Messages
2
Reaction score
0
Hi,

I'm new in to programming with the Automator but I try to create a simple start button for KeePass2 for my mac.

I try to realise it with a shell-skript in the Automator tool.

At the moment my code is like that

cd
cd ~/Documents/KeePass-2
mono KeePass.exe

If I save the File as a program and start it KeePass will open but the Skrip is endlessly running in the background.

I tried some extra commands at the end of the code but nothing would work.
These are the two things I tried
1) exit 0
and
2) > /dev/null 2>&1

I hope somebody can help me.
 
Joined
Oct 12, 2017
Messages
1
Reaction score
0
This works fine for me:

cd /Users/robertschulz/Dropbox/KeePass
MONO=/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono
$MONO ./KeePass.exe >~/keepass.out.log 2>~/keepass.err.log &
exit 0


so honestly: i think your script mainly missed the ampersand '&' at the lines end to fork the command to the background.
Next we should be sure not to leave any input or output stream connected. I think stdin is not connected. You had the right thing already: i like to save the output to some logfile.
exit 0 is really not needed - i like it explicit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top