rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: pierissimo on February 08, 2009, 01:10:27 PM
-
Hi!
I am an old user of hfs software!I use it on ubuntu linux with wine.
My question is, there is a way to pass arguments to hfs on linux?
for example, in windows,from the prompt the command:
hfs file1 file2
works, on linux, with wine, I do not manage to make it works.
on bash, I create a simple script:
#!/bin/bash
wine /home/piero/programmi/hfs/hfs.exe "$@"
but do not works, then I modified the script, passing as arguments, the full path of a file,keep in mind that wine assigns "z:/" letters to my home partition.
#!/bin/bash
function abspath() {
DIR=`dirname "$1"`
NAM=`basename "$1" | sed "s: :\ :g"`
FDIR=`cd "$DIR"; pwd`
echo $FDIR/$NAM
}
finalString="";
for word in $@;
do
finalString=$finalString" z:"$(abspath "$word");
done
wine /home/piero/programmi/hfs/hfs.exe "$finalString"
so the script will pass on hfs a line similar to this:
wine /home/piero/programmi/hfs/hfs.exe "z:/home/piero/Desktop/file1 z:/home/piero/Desktop/file2"
but it do not works...
some suggestions?
-
Passing command line parameters to Xilinx tools under Linux/WINE
If you are using WINE and invoke Xilinx command line parameters without modification, the switches will be interpreted as WINE command line parameters. WINE uses a double dash (--) to signify that the parameters following the double dash are to be interpreted by the program that is being called up by WINE. There are two ways to correctly pass parameters:
1. (Recommended Method) "wine ngdbuild -- -p xcv50-6bg256 top.edf DESIGN_NAME.ngd".
2. (Alternate Method) "wine -- ngdbuild -p xcv50-6bg256 top.edf DESIGN_NAME.ngd".
http://www.xilinx.com/support/answers/14629.htm
take the second solution :
wine -- /home/piero/programmi/hfs/hfs.exe hfs_parameters
-
do not works!
piero@pnblin:~/Desktop$ wine -- /home/piero/programmi/hfs/hfs.exe Schermata.png
wine: could not load L"C:\\windows\\system32\\--.exe": Module not found
-
and with the other?
wine /home/piero/programmi/hfs/hfs.exe -- hfs_parameters
-
I tried it, but the path is recognized not correctly(same as before).
The path is recognized not as "Y:/home/piero/Desktop/Schermata.png" but just as "Schermata.png"
-
make it with the two full path
wine /home/piero/programmi/hfs/hfs.exe -- Y:\home\piero\Desktop\Schermata.png
and
wine /home/piero/programmi/hfs/hfs.exe -- "Y:\home\piero\Desktop\Schermata.png"
don't forget that / is a folder separator under linux and \ under windows
-
neither... the second one is recognized as "YhomepieroDesktopSchermata.png"
-
I realized that the path of my home "/home/piero/" is recognized in hfs just as "Y:" !!!
Now is more clear!
thanx mars!
I manage to make an integration of hfs with nautilus contextual menu.
Hi
(sorry for bad english)