Can any body tell me how to convert "Windows command" IO.popen("start example.pdf") in to Linux or Unix so that the Linux box will open the "example.pdf" file application.
regards
Eko
Can any body tell me how to convert "Windows command" IO.popen("start example.pdf") in to Linux or Unix so that the Linux box will open the "example.pdf" file application.
regards
Eko
Eko Budi Setiyo wrote:
Can any body tell me how to convert "Windows command" IO.popen("start example.pdf") in to Linux or Unix so that the Linux box will open the "example.pdf" file application.
regards
Eko
IO.popen("xpdf example.pdf")
Doesn't "start" on Windows function as sort of a dispatcher? It knows what application goes with the file type? Linux/Unix doesn't have any such thing
built in AFAIK. You need to run the program that displays the pdf file yourself.
craig duncan wrote:
Eko Budi Setiyo wrote:
Can any body tell me how to convert "Windows command" IO.popen("start example.pdf") in to Linux or Unix so that the Linux box will open the "example.pdf" file application.
regards
EkoIO.popen("xpdf example.pdf")
Doesn't "start" on Windows function as sort of a dispatcher? It knows what application goes with the file type? Linux/Unix doesn't have any such thing
built in AFAIK. You need to run the program that displays the pdf file yourself.
KDE has "kfmclient exec URL". Gnome probably has something similar.
craig duncan wrote:
Eko Budi Setiyo wrote:
Can any body tell me how to convert "Windows command" IO.popen("start example.pdf") in to Linux or Unix so that the Linux box will open the "example.pdf" file application.
regards
EkoIO.popen("xpdf example.pdf")
Doesn't "start" on Windows function as sort of a dispatcher? It knows what application goes with the file type? Linux/Unix doesn't have any such thing
built in AFAIK. You need to run the program that displays the pdf file yourself.
Thanks
I don't know so much about "start" on windows. Personally it's quite dangerous function. I accidently find it.
Because:
something.exe ---rename---> something.pdf ----> C:\start something.pdf ---> will executed as something.exe
regards
Eko
Joel VanderWerf wrote:
craig duncan wrote:
Eko Budi Setiyo wrote:
Can any body tell me how to convert "Windows command" IO.popen("start example.pdf") in to Linux or Unix so that the Linux box will open the "example.pdf" file application.
regards
EkoIO.popen("xpdf example.pdf")
Doesn't "start" on Windows function as sort of a dispatcher? It knows what application goes with the file type? Linux/Unix doesn't have any such thing
built in AFAIK. You need to run the program that displays the pdf file yourself.KDE has "kfmclient exec URL". Gnome probably has something similar.
Thanks
Is it possible for ruby to find out what is the pdf reader application installed in the target Computer
regards
Eko
Eko Budi Setiyo <contact_us@haltebis.com> writes:
Is it possible for ruby to find out what is the pdf reader application
installed in the target Computer
In Linux/UNIX? Generally no, unless you know distribution &
installation specific information.
But do try the program "see". It comes from the same package that
provides /etc/mailcap, and so it should be quite common.
Other than that, allow users to specify their own pdf reader.
YS.