LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-24-2016, 08:09 AM   #1
sorintene
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Rep: Reputation: 0
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 !
 
Old 03-24-2016, 08:39 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
would you be able to ask the programmer for source code ?

maybe running it in the terminal will clue you into what is running but it is based on whatever debugging info the programmer included.
 
Old 03-24-2016, 08:53 AM   #3
sorintene
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
If I could find the source code I would not ask -
About running this menu item in terminal I do not know how to do it.
 
Old 03-24-2016, 09:32 AM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
strace?
 
1 members found this post helpful.
Old 03-24-2016, 09:36 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
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.
 
Old 03-24-2016, 11:05 AM   #6
sorintene
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Unhappy

Ok I'll dig about "strace"...

Last edited by sorintene; 03-24-2016 at 11:20 AM.
 
Old 03-24-2016, 11:09 AM   #7
sorintene
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
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?
 
Old 03-24-2016, 11:27 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
How do you start the program? desktop icon?
 
Old 03-24-2016, 11:56 AM   #9
cnamejj
Member
 
Registered: Mar 2015
Distribution: Ubuntu
Posts: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by sorintene View Post
Ok I'll dig about "strace"...
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.

So I'd suggest trying something like this,

Code:
strace -f -q -e trace=process -p ###
to reduce the noise you'll capture.
 
Old 03-24-2016, 12:20 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
SUSE LINUX ENTERPRISE SERVER 9
you are aware that that is unsupported

suse 9.3 went end of life all the way back in 2007
and 9.1 back in 2006
 
Old 03-25-2016, 03:53 AM   #11
sorintene
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
How do you start the program? desktop icon?
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.
 
Old 03-25-2016, 03:55 AM   #12
sorintene
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
SUSE LINUX ENTERPRISE SERVER 9
you are aware that that is unsupported

suse 9.3 went end of life all the way back in 2007
and 9.1 back in 2006
That is! Inheritance....
 
Old 03-25-2016, 04:02 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
so you need to find what was started. Is it a binary executable or a shell script or ?
 
Old 03-25-2016, 04:58 AM   #14
sorintene
LQ Newbie
 
Registered: Aug 2008
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pan64 View Post
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
 
Old 03-25-2016, 05:59 AM   #15
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,841

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
so you need to find the executable itself first and check if that is a shell script or a binary or ???
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Turn KnoppMyth backend/frontend into backend only nebbus Linux - General 0 09-09-2007 01:57 AM
online update command line option not found in SuSE Linux Enterprise server 10 manisarma_pspl SUSE / openSUSE 0 07-16-2007 04:17 AM
Backend -Frontend Interaction unbeknown Linux - Software 1 07-29-2003 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration