On Dec 24, 2008, at 11:52 PM, William Chops Westfield wrote: > Am I missing a simple way to run a dos program in wine, say from bash? I think I found what I was looking for. (And I guess what I thought were DOS programs weren't really, anyway. Just "Command line" windows apps. So on my mac I made a shell script like: ============ #!/bin/bash case $0 in */cc5x) app=~/Applications/WineApps/cc5x/cc5x.exe if [ "x$*" != "x" ]; then config=-IC:cc5x args=$* fi;; */mpasm) app=~/Applications/WineApps/mpasm if [ "x$*" != "x" ]; then config= args=$* fi;; */mplink) app=~/Applications/WineApps/mplink if [ "x$*" != "x" ]; then config= args=$* fi;; esac /Applications/Darwine/Wine.bundle/Contents/bin/wine $app $config $args ============ And I hard link ~/bin/mpasm to the shell script, and soft link ~/ Applications/WineApps/ to wherever the install put them (~/.wine/drive_c/Program\ Files/...) Wine and/or the shell script seems to have trouble with filenames containing spaces (which is annoying), and the soft links solve that problem... mpasm thinks it's running in windows, though (according to the docs, it should notice that it's running from the command line.) Perhaps I need a command.com replacement in the chain as well. cc5x's "type any character to continue" prompts don't stop, but it looks basically usable.... BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist