My application:
#!/bin/sh
#
# D2GS
#
# Go to the directory
cd ~
# Run the applications
if ! ps aux | pgrep "D2GS"; then
wine "C:/D2GS/D2GS.exe" >& /dev/null &
fi
Gives error:
./d2gs.sh: 14: ./d2gs.sh: Syntax error: Bad fd number
Which is strange, since when I start wine "C:/D2GS/D2GS.exe" >& /dev/null & - it runs without any issues. The reason why I want to start it from shell is, because I want to crontab it every minute.