LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-16-2007, 03:43 PM   #1
Tralce
Member
 
Registered: Nov 2006
Location: Maine
Distribution: Debian, Ubuntu, Gentoo
Posts: 109

Rep: Reputation: 15
Somewhat complex piping procedure


I may not have the correct term here. What I'm trying to do is get a Windows graphic viewer (irfanview) to load a file from the command line. Simply, I want to click on a jpeg in KDE and have it come up in IView.

Here's my association command:
wine '/tralce/.wine/drive_c/Program Files/IrfanView/i_view32.exe' 'winepath -w %f'

However, irfanview thinks that I mean for the "winepath -w" to be the file loaded. Is there some kind of pipe I should be using here? Nothing I've tried works.
 
Old 02-16-2007, 04:43 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
Have your tried putting the path in like

wine /tralce/.wine/drive_c/Program Files/IrfanView/i_view32.exe %f ?

Normally from command line you can just put path like C:\\path\\to\\file. Not sure about the 'winepath -w'

Last edited by dive; 02-16-2007 at 04:45 PM.
 
Old 02-16-2007, 04:45 PM   #3
Tralce
Member
 
Registered: Nov 2006
Location: Maine
Distribution: Debian, Ubuntu, Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
Ordinarily that would work, except that the path is a unix path contained in the variable %f, which winepath -w is converting to a Windows path to make nice with Irfanview. The variable has to be there in order for me to be able to load any image from the KDE interface.
 
Old 02-16-2007, 06:20 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
Sorry can't help with this then

Last edited by dive; 02-16-2007 at 06:26 PM.
 
Old 02-16-2007, 06:25 PM   #5
Tralce
Member
 
Registered: Nov 2006
Location: Maine
Distribution: Debian, Ubuntu, Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
That may be. However in this instance I want to append the output of 'winepath -w %f' to the command 'wine i_view32.exe'. Not to be rude, and please don't take this as rudeness, but that's the way I want to solve this issue.
 
Old 02-17-2007, 10:00 AM   #6
Tralce
Member
 
Registered: Nov 2006
Location: Maine
Distribution: Debian, Ubuntu, Gentoo
Posts: 109

Original Poster
Rep: Reputation: 15
I've come to the conclusion that the command needs to be processed algebraically. As in:

wine i_view32.exe (winepath -w %f)

which in my mind would yield:

wine program C:\path\filename.jpg

I feel as though I haven't been overly clear as to the purpose. I use KDE. I want to be able to click on a jpg in Konqueror and have wine launch Irfanview with the windows path and filename of the jpg that I clicked on. It's not something I have to have, I just want to do this, partly because dad lives off of irfanview and hates all the viewers that he's seen with Linux, and I really don't want him to be stuck with crap Vista. Ah, but I'm rambling. I just like seamless shell integration.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
piping commands blanny Linux - Newbie 4 07-26-2006 03:45 PM
Help with piping mijohnst Linux - General 7 10-21-2005 05:14 PM
piping /forking geminigal Programming 3 04-10-2005 10:49 PM
Piping question OtisLinux Linux - Software 1 02-12-2004 02:38 PM
piping commands john8675309 Linux - Software 3 12-06-2003 08:42 AM


All times are GMT -5. The time now is 07:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration