Software :: Writing A Script That Is Designed To Verify An Application Is Running?
Apr 13, 2010
I am writing a script that is designed to verify an application is running. The if...else statement in question is the following:
Code:
# Check if <application> is running.
ps -ef |grep <application> > /dev/null
RC=$?
echo $RC
[Code]....
I have started testing by disabling the application in question, and then running the script. The problem that I am seeing is that even though the application is not running, I am getting an output code of 0 due to the successful running of the ps command. What syntax change(s) do I need to make in order to accurately determine when the application is not running?
View 3 Replies
ADVERTISEMENT
Jul 7, 2010
I'm trying to write a simple, console based application in linux, in c++. I know how to start in Eclipse and I have some experience in c++ from Windoze. I would like to ask, if there is some tutorial available on writing console apps. I mean, I know from using linux that there are two conventions on using parameters in command line (-v and --version for example).
View 2 Replies
View Related
Apr 15, 2011
I try to understand the way the network-admin tool retrieve and set information about the network connections, and after reviewing thee code, I still dont undertsnad how it does it. I thought that it should use maybe linux commands such as iwconfig or ifconfig or by using ioctl for get/set the parameters of the wireless, but I did not find such things in the code. It also does not use AT commands for modem devices parameters.
I see that it uses liboobs files, but after veiwing the code, I still don't understand how it works.
These question comes since I work on application which connects to wireless devices (possibly several wifi and modems devices can be connected ), and I try to think how to set/get the network parameters, I thought that a good start will be to look at how network-admin works.
View 1 Replies
View Related
Mar 26, 2011
I tried this command to print the buffer of an existing screen session to stdout but I don't know why it doesn't print anything.
screen -x lftp -X hardcopy /dev/fd/1
screen -x lftp -X hardcopy /dev/stdout
It works if I use a regular file instead, so why doesn't it print to stdout when I use /dev/fd/1? I do this with other applications don't have an option to write to stdout and it works, so what does GNU/Screen do that makes it not work?
View 1 Replies
View Related
Jan 10, 2011
I want to run gallist pkge from iraf for several times.. The step for running that
is:>xgterm &
>ecl &
ecl>noao
noao>artdata
artdata>epar gallist (I set some parameter) then by writing gallist iraf terminal the pkge is run:
artdata>gallist
I want this pkge is run for 1000 time and all output result are collected in only one file.
View 1 Replies
View Related
Jul 9, 2010
Using CentOS 5.5. I have ssh setup to use a radius server for authentication. When I use filezilla to test sftp I can successfully authenticate and get directory listings, but every time I try to download or upload a file filezilla attempts to re-authenticate which fails because the radius server uses token auth with one time passwords, so the original password used to authenticate is no longer valid. However I can browse directories all I want and it never tries to re-authenticate.
1. is this re-auth just how sftp protocol was designed? like re-auth anytime a user tries a different action, like browse vs download vs upload?
2. or am I just missing something? (very likely, I'm not real experienced with linux)
View 3 Replies
View Related
Mar 28, 2011
If I was to set up a Cluster, I know it wouldn't make much difference to loading up my browser, but would all heavy duty programs (Video Encoders mainly) work with it, or would I need to use programs specifically designed for cluster use?
View 1 Replies
View Related
Apr 26, 2011
Which is why I'm glad KDE still values the good old desktop paradigm. I'd like to use unity, but unfortunately, it is impossible to customise in any significant fashion. I will be switching to Kubuntu now. I think a "start bar" is the perfect mouse & keyboard GUI paradigm.
My recomendation to the Ubuntu devs is to give unity an option to replace the awkward (for a mouse) application finder with a "start menu", and also give an option to have the old style of task bar as well.
I am not complaining here. like I said, I like KDE and have no problem switching over. The only reason I care about unity is; I don't want somebody to try Ubuntu, find out you can't customise the GUI at all, then go right back over to windows or OSX.
View 2 Replies
View Related
Mar 16, 2010
I want to be able to connect these machines to the domain and use active directory on them.
View 2 Replies
View Related
May 18, 2011
Does linux kernel 2.6 support suid & guid?. I just read somewhere that "latest linux kernels does not support suid & guid as it can pose a security risk if the setuid attribute is assigned to executable programs that are not carefully designed". I need a confirmation about what I say is correct or if not please correct me.
View 6 Replies
View Related
Mar 31, 2011
After a series of unrelated problems with my mouse (that had nothing to do with suse) I opened a process but I don't know what is it. It looks like a series of micro-post-its in the bottom of my desktop:Also, I checked the option to start a new session every time I start KDE, but this keeps appearing.
View 9 Replies
View Related
May 3, 2010
As the thread states, I wonder why my RAM usage is about 56% without any application running. It turns to 58% while opening Firefox (with only one Tab/Page opened) and typing this post. Is there something wrong?
View 9 Replies
View Related
Jan 26, 2011
I'd like to know if there is a script that can check and see if an application has been closed (I don't know a great deal about bash programming).I'm running an organ programme with this script.
/usr/bin/jackd -r -t5000 -dalsa -dhw:0 -r44100 -p1024 -n2 -P &
java -jar /home/user/jOrgan/jorgan.jar &
jack-rack -s space space &
[code]....
View 2 Replies
View Related
Feb 16, 2011
My application environment which is made of jdk1.6,Tomcat 6, my sql 5.0. When i deployed my project in ubuntu 8.4, it was running fine.
But when i added
richfaces-api-3.3.3.Final.jar
richfaces-impl-3.3.3.Final.jar
richfaces-impl-jsf2-3.3.3.Final.jar
richfaces-ui-3.3.3.Final.jar
jar file in my application and deployed it in ubuntu10.4 then also it run smoothly.
But when i m trying to deploy it in ubuntu8.4 it shows an error
"resource not found"
View 1 Replies
View Related
Apr 2, 2011
I have a lyric plugin enabled but when I ask for a song's lyric I can't see it because of the character map settings, here is an example:So the question is how can I run Rhythmbox with an specific charmap?
View 2 Replies
View Related
Jan 14, 2010
I have two computers running Ubuntu. I want to run the copy of Firefox that is on the remote machine. i connect to the remote in the usual way, "ssh -X fermi", which brings up a console on the remote machine, fermi. When I type "firefox", however, it starts the copy of firefox that is on the local machine. On the remote machine, "ps aux|grep firefox" confirms that firefox is not running there. Is there a way to force execution of the remote copy?Or, can I start a local copy of firefox using the remote bookmarks, preferences, etc?
View 3 Replies
View Related
Mar 25, 2010
Running the Lynx and I have set up Evolution to download my Gmail e-mails but now I have a question.
When Evolution is running I get the notifications when e-mail come in and the little envelope at the top becomes "lit" to indicate I have new mail. What I want to know is how can I get notified without having the application "open", still having the notifications etc. but without having the application window open (like when you "close" Rhythmbox but it is still running at the top even though the windows is closed)?
View 9 Replies
View Related
Sep 3, 2010
unable to run opencv opllications on ubuntu(10.04)error:OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /home/p/OpenCV-2.0.0/src/highgui/window.cpp, line 100.
View 2 Replies
View Related
Oct 13, 2010
I want to launch qiv upon startup to show a series of photos in slideshow fashion (this will be the sole purpose of this particular laptop). I tried adding the command via System->Preferences->Startup Applications but this does not produce the desired result. In fact, the slide show doesn't even start.
View 5 Replies
View Related
Nov 1, 2010
I need to take a screen capture while an application is running. The application is a touch screen calibration utility and alt-Prnt Scrn does not work when the calibration utility is active. Is there another way for me to capture the screen while the utility is active?
View 1 Replies
View Related
Feb 12, 2011
I have a application in
/xxx/xxx/xxx/app
I need to type a long path each time, if I want to use it. I want to use it just type 'app'. How to do? Whatever I'm stay in any path.
View 2 Replies
View Related
Nov 2, 2009
Can you run an application automatically when you load linux? In this case it would be VMPlayer?
View 4 Replies
View Related
May 28, 2010
I have come across an issue. We have an application for the biotechnology. The application is very heavy so we are trying to run it on cluster. We have four Dell workstation 7500. Each is having 32 GB RAM. But I am not getting the exact method of configuring cluster and node. I have tried Conga (Luci, Ricci). My questions are:1) Is it possible that our application can run on cluster ?2) If its possible then how shall i configure it?
View 7 Replies
View Related
Feb 4, 2009
I frequently access my home computer throughout the day in two ways: either locally, or remotely using nxserver/nxclient. As one user, I have two concurrent X-windows sessions running, possibly with different applications running in each. Is it possible to move a running application from one session to the other? That is, I want all the active windows related to the app to disappear from one desktop,
View 4 Replies
View Related
Jul 8, 2009
I have installed Linux 2.6 kernel RHEL 5.3 server edition, Upon we installed DOSEMU 1.4.We are unable to run the dos graphical applictions over dosemu. One sample DOS EXE for drawing a circle using Graphics library routines in C fails to start and displays the following errorBGI Error: Graphics not initialized (use 'initgraph')Please let us know any dosemu configuration setting to tweaked to run the DOS graphical application
View 1 Replies
View Related
Dec 4, 2010
Is there any way to restrict user from running certain application with wine? Something like white or blak lists?
View 4 Replies
View Related
Mar 29, 2011
I'm looking for a solution for running C++ objects on remote machines from one C++ application.
View 2 Replies
View Related
Jan 10, 2010
I am trying to run eclipse with administrator rights so that it can access any folder on my system.
View 9 Replies
View Related
Mar 4, 2011
I would like to know if there is a panel widget that works like the Window switcher (switch between windows using buttons) that only shows the icon. I m not looking for something like Docky, just a widget that goes into my panel.
Ubuntu 10.04, Acer Aspire One 10.1" 1.66Ghz 1GB 250GB Dual boot with Windows 7 Blue cover
View 2 Replies
View Related
Jun 19, 2009
I need to run an application on a virtual desktop (let say desktop #2) and control it via another app running on the root desktop (desktop #1). That would include screen capture and mouse movements. So basically I capture the application window from desktop #2, scrape it and then click on buttons via my app on desktop #1. Anyway you got the idea.Now my big question is: is that doable ? and if so what's the best language to do it ?
View 1 Replies
View Related