Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 06-28-2004, 07:47 AM   #1
LQ Newbie
Registered: May 2004
Posts: 28

Rep: Reputation: 15
bash: pass a parameter to xview

Is it possible to pass a parameter to a running program?

For example a slideshow with xview:

- open xview
- load pic1
- wait 5 secs
- load pic2
- ...
- close xview

It's easy to program this with opening and closing xview for every picture. How can I program that without opening and closing xview all the time?

Old 06-28-2004, 11:55 AM   #2
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 110Reputation: 110
Re: bash: pass a parameter to xview

Is it possible to pass a parameter to a running program?
This is only possible if the program supports it explicitly. Don't know about xview.
Old 06-28-2004, 10:18 PM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
If a command allows taking arguments from a file, you could try using a named pipe as that file. Or you could try supplying the arguments using command completion.
xview `script-supplying-the-time-separated-arguments`.

However, if the arguments are all digested before the first image is displayed, these solutions won't work. I'm not at my own computer so I can't read the manpages, or test my ideas.


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
how to pass command-line parameter to shell script? Kropotkin Linux - Newbie 12 07-25-2011 10:24 AM
gtk - How to pass in a parameter Ian D Programming 4 10-28-2005 12:23 PM
how do I pass a module parameter? maerong Debian 2 02-07-2005 08:33 AM
pass a parameter to a running program nimra Linux - Software 1 06-29-2004 02:38 AM
PHP Pass Parameter Gerardoj Programming 2 05-25-2004 09:12 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:06 PM.

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