find “backend” command(s) executed by a frontend application on a SUSE LINUX ENTERPRISE SERVER 9 (kernel 2.6.5)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
find “backend” command(s) executed by a frontend application on a SUSE LINUX ENTERPRISE SERVER 9 (kernel 2.6.5)
Hello,
I have a frontend application that does several things on a menu based. One of its item is "backup database". Is there a way to find what exactly command(s) execute this. I am thinking of something like history in shell or looking somewhere in logs. I'm noob with linux so please be very precise.
Thanks in advance for answers !
If you can determine the name and location of the front end application you can see if it is compiled program or a script. If it is a script then it should be a text file where you can examine its contents.
While the backup is running you might be able to catch the running processes which might provide a clue to the underlying commands.
If you can determine the name and location of the front end application you can see if it is compiled program or a script. If it is a script then it should be a text file where you can examine its contents.
While the backup is running you might be able to catch the running processes which might provide a clue to the underlying commands.
Well this is quite a good advice for a start !!!! So let's start: how can I determine the name and location of the front end application?
That's what I was going to suggest too. You'll definitely need to specify "-f" to track child processes, the processes they created, etc... And you can probably get away with filtering the calls it reports using "-e trace=process" so you don't have to search through huge amounts of gibberish.
The server does not have GUI.The front end application is like a msdos menu and it appear as soon as I log with the specified user. I move with up/dpwn arrows and press enter on the selected item.
so you need to find what was started. Is it a binary executable or a shell script or ?
As I said in my first post, this is what I want to find.I know, from the menu title that is a postgres 7.4.2 backup. But I want to know what really this does, call a binary, run a script, etc
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.