I have a few to questions pose in response first:-
What have you tried so far?
What output/errors do you get?
What OS and version are you using?
What are your preferred tools? (C, shell, perl, awk, etc.)
What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly, What have you tried so far? This menu doesn't actually drive anything yet.
There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.
We're all here to learn and getting the relevant information will help us all.
I have a few to questions pose in response first:-
What have you tried so far?
What output/errors do you get?
What OS and version are you using?
What are your preferred tools? (C, shell, perl, awk, etc.)
What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly, What have you tried so far? This menu doesn't actually drive anything yet.
There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.
We're all here to learn and getting the relevant information will help us all.
Regards,
Robin
Ok, now i have new question, do we have other style more than dialog ?
i want to have something like ajax that show $STATUS in my menu and refresh every 5 min
Okay, so now I'm very confused. You didn't answer any of the questions and bring in something I'm not familiar with. What is ajax? Is it software, a command or a member of this community?
I'm not going to be able to help if you don't show what you have tried.
ajax needs to call local code to call local code. Meaning: for every OS it connects to it has some kind of locally DIFFERENT "api" call to get what you want. Therefore, the call is platform dependent. Base java has as a last resort the system method/call: as one clumsy way to do what you want. In order to get you an answer we need:
platform this is going to run on (OS name version)
Examples of what I mean as the issue:
This lousy bit of code will probably work on most modern Unix OSes. It requires modern a grep (supports -q) so it will not work on some older systems.
Some OSes have a commands that shows service information: Solaris, Red Hat, and so on.
Solaris (from the command line:
Last edited by jim mcnamara; 09-15-2014 at 12:03 PM..
I have a few to questions pose in response first:-
What have you tried so far?
What output/errors do you get?
What OS and version are you using?
What are your preferred tools? (C, shell, perl, awk, etc.)
What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly, What have you tried so far? This menu doesn't actually drive anything yet.
There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.
We're all here to learn and getting the relevant information will help us all.
Regards,
Robin
OK let me answer your question as you ask me ,
i havent receive any error,
i want to code a shell script with dialog ,which can show status of service XYZ in the top part of screen,
question is, is it possible to show $STATUS which bind to : service crond status
and show $STATUS in real time?
because this script can get status of crond ONLY when we run script,
---------- Post updated at 12:48 PM ---------- Previous update was at 10:22 AM ----------
Quote:
Originally Posted by jim mcnamara
ajax needs to call local code to call local code. Meaning: for every OS it connects to it has some kind of locally DIFFERENT "api" call to get what you want. Therefore, the call is platform dependent. Base java has as a last resort the system method/call: as one clumsy way to do what you want. In order to get you an answer we need:
platform this is going to run on (OS name version)
Examples of what I mean as the issue:
This lousy bit of code will probably work on most modern Unix OSes. It requires modern a grep (supports -q) so it will not work on some older systems.
Some OSes have a commands that shows service information: Solaris, Red Hat, and so on.
Solaris (from the command line:
i have try ps -ef | grep -v grep | grep -q crond
but nothing is display in output
Centos 6.5
Hello,
can some please suggest a script, for killing the process PID. This are steps I am currently performing to kill the process.
I cant user service splunk stop, to kill these processes, because of uid and gid mismatch for splunk user.
# service splunk status
Splunk status:
splunkd... (8 Replies)
Hi all,
Please advise how do i find services status running on windows machines
from Linux.
=-=====================
Some one developed a script use rsh command to find the status but it stopped working.
rsh <Some IIS server Name> service -S < Windows Server name where service running>... (1 Reply)
good afternoon to all
hay i m new in AIX. my problem is that.....plz tell me how to see " service status" in AIX Becoz i run /etc/rc.d/rc.2/Sbesclientd so its show below like this
bash-3.2$ sudo /etc/rc.d/rc2.d/SBESClientd status
Usage: /etc/rc.d/rc2.d/SBESClientd { start | stop }
I... (2 Replies)
So,
What is the best method, if even possible, to display a percentage or a status or progress of a certain command? For example I am forcing a block copy of a an OS image from one machine to another via a shell script and would like for it to display a progress or status so I know if it is... (3 Replies)
hi there
when i run
#service --status-all
or
#service nfs status
the screen flickers
if i ssh from remote system than i dont have flickering on the remote nor that system.
is it something to do with probably display configuration. ?
and which file are the display setting... (7 Replies)
Hi,
example of Unix / Linux dialog utility is below.
I am going to use dialog as simple GUI for testing of a modem.
So I need to combine some dialog boxes into one.
I need to have input box, output box, info box, dialog box,
radiobox as in any standard program with graphical user... (2 Replies)
:confused:
Hi
Can anyone tell me how to check the FTP process status in linux .
eg,I'm ftpping some files from "A" server to "B" server through FTP command ,
after ftpping these files , I 'm suppose to delete the files which are successfully ftpped from "A" server ,but when I 'm checking the... (1 Reply)