Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

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

Replies are listed 'Best First'.
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.

Re: How to open a gif file with non-default application
by kcott (Chancellor) 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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://871940]
Approved by kcott
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2018-03-22 00:41 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (272 votes). Check out past polls.