Re: Passing "current dir" to linux program (or other ways to associate it)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 07 Mar 2004 02:42:09 +0300, you wrote:

> #!/bin/sh
> env TEMP=/tmp TMP=/tmp acroread /path/to/pdf/files/$1
> 
> It's because Windows passes only the filename, and the directory is
> supposedly "current". As I don't know of a way to get the "current" dir,
> all I could do was fix the path.

You can use $(pwd) here (pwd = print working directory): 

acroread $(pwd)/$1

Actually in general it is better to use winepath (included tool with
wine) as it does conversion of DOS style paths (C:\program files\blabla)
as well. 

acroread $(winepath $1) 


Rein.
-- 
Rein Klazes
rklazes@xxxxxxxxx
_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux