01-10-2006
find the fully-qualified path for the app my module is running in
Hi-
I need the cpp call that will tell me the full path to the app I'm running in. For example, I'm running in a loaded library for either mozilla or firefox, but would like to know the full path to the executable
/usr/bin/firefox
/usr/bin/mozilla
/usr/local/firefox1_5
etc...
(For windows programmers, it would be the Linux version of GetModuleFileNameW)
Thanks!
10 More Discussions You Might Find Interesting
1. Programming
Hello,
I would really appreciate some help with a problem my current client is having. He has an old legacy app that does his company's financial accounting and ERP for manufacturing, etc. The app was written by a company called "Just in time" in Austin, TX, and they are no longer in business.
... (2 Replies)
Discussion started by: w0lf
2 Replies
2. Solaris
Hi Friends..
I have a small problem with the hostname of my system.I had installed Solaris 10 X86 on Vmware in my windows 2000 system.After booting of my solaris system,if i give check-hostname command it says ,,
hostname is not fully qualified ,,change the hostname to hostname.xxx.xxxxxx.com... (3 Replies)
Discussion started by: sdspawankumar
3 Replies
3. Programming
Hello!
I just programmed a very simple app, it's function is to report every minute the state of the memory and cpu and put it to and xml.
All this stuff is working ok since I'm logged in into the machine, but i want it to run as a service, how can I do that??
P.S: Any one knows how can I... (1 Reply)
Discussion started by: ncatdesigner
1 Replies
4. IP Networking
hi all.
am unable to ping a freebsd machine using fully qualified domain name from a windows machine.
i have already set the fqdn for the machine.
plz advise me.
thanks. (2 Replies)
Discussion started by: coolatt
2 Replies
5. Windows & DOS: Issues & Discussions
Hi.
I was, not too long ago, an OS X home user. One of the things I remember from using the Apple-installed Terminal is: whenever an executable that took more than a split second to do its thing was running, its name would appear in the title bar in a way similar to "Terminal: ssh" or "Terminal:... (0 Replies)
Discussion started by: SilversleevesX
0 Replies
6. Shell Programming and Scripting
hi
actually i want to get fully qualified path name of the file when the file name is entered as command line argument while running a shell script
ex. if i run the shell as $./test.sh ./nsdnet_file.csv
the it should display me the full path of the file like
/dialp/Release/bin/nsdnet_file.csv... (3 Replies)
Discussion started by: priyanka3006
3 Replies
7. AIX
Hi,
A quick question. If I build an application on AIX 6.1 TL3 using XL C/C++ 8.0 and Oracle 10g, can I then take those binaries and run them on AIX 5.3 and previous?
Regards
Kevin (3 Replies)
Discussion started by: KevB
3 Replies
8. Solaris
I tried changing my /etc/inet/hosts file for my server to:
<ip address> <hostname> <fqdn>
but when I go to reboot the file changes right back to:
<ip address> <hostname>
how do I get the <fqdn> to stick on a reboot.
Thanks (2 Replies)
Discussion started by: jastanle84
2 Replies
9. Programming
Hi I actually wrote a simple module and I need to call a bin file from that module. Could you give me some hints how to do that?
(I tried with stdlib.h and 'system()', but cannot call that function from a module).
Regards. (28 Replies)
Discussion started by: Chrisdot
28 Replies
10. UNIX for Dummies Questions & Answers
Hello,
i have:
# python -V
Python 2.7.6
But original for my CentOS is 2.3 or 2.4
my python folder:
/root/python2.7.6
(inside are folders like lib, include, bin, share)
I launched app iotop:
# iotop -od 6
Traceback (most recent call last):
File "/usr/bin/iotop", line 16, in... (3 Replies)
Discussion started by: postcd
3 Replies
LEARN ABOUT PLAN9
firefox
FIREFOX(1) Linux User's Manual FIREFOX(1)
NAME
firefox - a Web browser for X11 derived from the Mozilla browser
SYNOPSIS
firefox [OPTIONS] [URL]
DESCRIPTION
Mozilla Firefox is an open-source web browser, designed for standards compliance, performance and portability.
USAGE
firefox is a simple shell script that will set up the environment for the actual executable.
OPTIONS
A summary of the options supported by firefox is included below.
GTK options
--gdk-debug=FLAGS Gdk debugging flags to set
--gdk-no-debug=FLAGS
Gdk debugging flags to unset
--gtk-debug=FLAGS
Gtk+ debugging flags to set
--gtk-no-debug=FLAGS
Gtk+ debugging flags to unset
--gtk-module=MODULE
Load an additional Gtk module
X11 options
--display=DISPLAY
X display to use
--sync Make X calls synchronous
--no-xshm
Don't use X shared memory extension
--xim-preedit=STYLE
--xim-status=STYLE
--g-fatal-warnings
Make all warnings fatal
Firefox options
-h, -help
Show summary of options.
-height value
Set height of startup window to value.
-width value
Set width of startup window to value.
-v, -version
Print /usr/bin/firefox-bin version.
-CreateProfile profile
Create profile.
-P profile
Start with profile.
-ProfileManager
Start with profile manager.
-UILocale lang-region
Start with lang-region resources.
-contentLocale lang-region
Start with lang-region resources.
-remote command
Execute command in an already running Firefox process. For more info, see: http://www.mozilla.org/unix/remote.html
-no-remote
Don't try to control an already running instance.
-jsconsole
Start with Javascript Console
-chrome url
Load the specified chrome.
-new-window url
Open URL in a new window if Firefox is already running.
-new-tab url
Open URL in a new tab if Firefox is already running.
-preferences
Open Firefox preferences menu.
-safe-mode
Disables extensions and themes for this session.
FILES /usr/bin/firefox - shell script wrapping firefox
/usr/lib/firefox/firefox - firefox executable
VERSION
3.0
BUGS
To report a bug, please visit http://bugzilla.mozilla.org/
SEE ALSO
mozilla(1)
AUTHORS
The Mozilla Organization
http://www.mozilla.org/about.html
firefox January 04, 2006 FIREFOX(1)