rejetto forum

wine+hfs+arguments

0 Members and 1 Guest are viewing this topic.

Offline pierissimo

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
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:
Code: [Select]
#!/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.
Code: [Select]
#!/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:
Code: [Select]
wine /home/piero/programmi/hfs/hfs.exe "z:/home/piero/Desktop/file1 z:/home/piero/Desktop/file2"
but it do not works...
some suggestions?


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2070
    • View Profile
Quote
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


Offline pierissimo

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
do not works!

Code: [Select]
piero@pnblin:~/Desktop$ wine -- /home/piero/programmi/hfs/hfs.exe Schermata.png
wine: could not load L"C:\\windows\\system32\\--.exe": Module not found


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2070
    • View Profile
and with the other?

wine  /home/piero/programmi/hfs/hfs.exe -- hfs_parameters


Offline pierissimo

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
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"


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2070
    • View Profile
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


Offline pierissimo

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
neither... the second one is recognized as "YhomepieroDesktopSchermata.png"


Offline pierissimo

  • Occasional poster
  • *
    • Posts: 5
    • View Profile
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)