Wine in shell script suddenly not found
Archives Forums/MacOS X Discussion/Wine in shell script suddenly not found
| ||
Jeroens-Mac-mini:7-zip Rachel$ wine 7z 7-Zip [32] 15.05 beta : Copyright (c) 1999-2015 Igor Pavlov : 2015-06-14 Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...] [<@...;] <Commands> a : Add files to archive b : Benchmark d : Delete files from archive e : Extract files from archive (without using directory names) h : Calculate hash values for files i : Show information about supported formats l : List contents of archive rn : Rename files in archive t : Test integrity of archive u : Update files to archive x : eXtract files with full paths <Switches> -- : Stop switches parsing -ai[r[-|0]]{@listfile|!wildcard} : Include archives -ax[r[-|0]]{@listfile|!wildcard} : eXclude archives -bd : Disable percentage indicator -i[r[-|0]]{@listfile|!wildcard} : Include filenames -m{Parameters} : set compression Method -o{Directory} : set Output directory -p{Password} : set Password -r[-|0] : Recurse subdirectories -scs{UTF-8|UTF-16LE|UTF-16BE|WIN|DOS|{id}} : set charset for list files -sdel : Delete files after compression -sfx[{name}] : Create SFX archive -si[{name}] : read data from stdin -slt : show technical information for l (List) command -so : write data to stdout -ssc[-] : set sensitive case mode -ssw : compress shared files -t{Type} : Set type of archive -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options -v{Size}[b|k|m|g] : Create volumes -w[{path}] : assign Work directory. Empty path means a temporary directory -x[r[-|0]]]{@listfile|!wildcard} : eXclude filenames -y : assume Yes on all queries Jeroens-Mac-mini:7-zip Rachel$ cat > 7z.sh wine 7z ^Z [1]+ Stopped cat > 7z.sh Jeroens-Mac-mini:7-zip Rachel$ ./7z.sh ./7z.sh: line 1: wine: command not found Jeroens-Mac-mini:7-zip Rachel$ This is a copy from my console in OS X. I need to note the used device here was ExFAT, meaning OS X gives them the executable bit to all files by default, so that is why the chmod command was skipped (it was not needed in this particular case). I really have some more windows only stuff which works perfectly in wine (or DarWine to be more precise) which I'd like to call from a shellscript (the 'open' command won't do, as that will try to launch Paralells which I do not have installed on this machine. It has never been installed on this machine at all, so that only results into errors). (SUPPLEMENT: I tried to make Wine call to a batch file, but apparantly batch files are not supported in Wine, or at least not in the version I have). |