Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

How to open a gif file with non-default application

by newbie_coder (Initiate)
on Nov 17, 2010 at 07:05 UTC ( #871940=perlquestion: print w/ replies, xml ) Need Help??
newbie_coder has asked for the wisdom of the Perl Monks concerning the following question:

Greeting monks

In my perl script, few graphs are plotted using GDGraph module. As soon as the plotting is done, I want to open these graphs with a specific application(not the default one).I have tried using

system(qq(start "$full_filename"));

But it returns the following error

start: Unknown job: Line_uptime_1.gif

Please suggest me the right way

Comment on How to open a gif file with non-default application
Download Code
Re: How to open a gif file with non-default application
by kcott (Abbot) on Nov 17, 2010 at 07:19 UTC

    Determine what works from the commandline and use that.

    You probably want something like: start application_name filename

    Perhaps you need quoting, switches or similar.

    As you haven't told us what this non-default application is, it's rather difficult to advise what syntax you should be using.

    -- Ken

Re: How to open a gif file with non-default application
by ikegami (Pope) on Nov 17, 2010 at 07:27 UTC

    start will use the default application, so I don't see why you're still using start.

    system("c:\specific\application.exe image.gif");

    Actual usage may vary by application.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://871940]
Approved by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2015-07-02 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (31 votes), past polls