LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-28-2004, 06:47 AM   #1
nimra
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?

THX
 
Old 06-28-2004, 10:55 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

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

Quote:
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, 09:18 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:55 AM.

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
Open Source Consulting | Domain Registration