The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
S-180: Adobe Reader and Acrobat Vulnerabilities iBot Security Advisories (RSS) 0 02-13-2008 11:00 AM
TA08-043A: Adobe Reader and Acrobat Vulnerabilities iBot Security Advisories (RSS) 0 02-12-2008 10:30 AM
absolute path Kirichiko UNIX for Dummies Questions & Answers 2 10-03-2007 06:30 AM
$PWD shows absolute path vs path w/symbolic links kornshellmaven Shell Programming and Scripting 3 06-13-2007 12:15 PM
vi - replacing a relative path with absolute path in a file Yinzer955i UNIX for Dummies Questions & Answers 2 09-07-2006 11:47 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-23-2007
ramirezmc ramirezmc is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 2
absolute path for Acrobat reader

I would like to get the path of acrobat reader for any unix pc.

right now the path of acrobat reader is hardcoded

BEGIN

if :global.system = 'HP-UX' then
HOST('/opt/Acrobat4/bin/acroread /export/USERGUIDE.pdf');
else
v_path := 'HKEY_CLASSES_ROOT\acrobat\shell\open\command';
v_msg := Win_Api_Environment.Read_Registry(v_path,'',true);
APPID := DDE.APP_BEGIN(v_msg,DDE.App_Mode_NORMAl);

end if;
END;



Like in windows i can code to open acrobat reader whatever the windows with registry

" v_path := 'HKEY_CLASSES_ROOT\acrobat\shell\open\command'; "

is there a way to indicate the same thing for acrobat in unix?

thanks you!
  #2 (permalink)  
Old 10-23-2007
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,617
You can:

include the path where the reader resides in you PATH-variable;

create a symbolic link in a directory which is already in the PATH, like /usr/local/bin;

create an alias in the shell to expand a name to the fully qualified pathname

write a wrapper-script, which calls the reader itself and which knows it absolute pathname, then put the wrapper-script in a directory included in PATH.

And some more possibilities. Haven't i got your question right or was that really your problem?

bakunin
  #3 (permalink)  
Old 10-23-2007
ramirezmc ramirezmc is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 2
thanks for you fast response, i dont have privilege on the machine to create a symbolic link.

I would like to open the acroread whatever the version the admin will upgrade so i dont have the rehardcoded.

can i just code "/acroread /export/USERGUIDE.pdf'" ?
  #4 (permalink)  
Old 10-26-2007
bakunin bakunin is offline Forum Staff  
Bughunter Extraordinaire
  
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,617
create a shell alias which expands to the fully qualified path.

If this changes it is easy to change the alias accordingly.

bakunin
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0