03-31-2010
Quote:
any ideas of what i need to make the results display? iv ran some tests and the shell script gets stuck sayin "Is this the correct file you wish to monitor?" if you type "y", it just keeps asking the same thing...
You are not breaking out of the while loop after a [Yy] choice is made, so you loop through again, with the "are you sure" question. If you answer Y or y again, you'll launch yet another monitor for the same file.
You should probably add a statement that the monitor was launched for the file the user asked for and then exit the script after actually launching the monitor, unless you want to ask for a different file, in which case you need to re-work your loop a bit.
The "*" on both the [ Yy ] and [ Nn ] choice seems odd. Better to just have '[ Yy ])' and '*)' as choices for your case statement.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have launched telnet on nt and have connected to a unix server,
I'm trying to run a program on the unix server which will launch a gui, but when I try to launch it
I get the message
"display not set\n"
"By default set it to 0.0"
I can sit down at the unix machine and launch the program with... (3 Replies)
Discussion started by: cbachman
3 Replies
2. Programming
Hi everybody!
Could you please tell me how can I launch an executable from a C++ (on unix) program?
thanks in advance! (2 Replies)
Discussion started by: nadiamihu
2 Replies
3. Shell Programming and Scripting
Hi all. I need to use excel macro at my desktop to launch a csh script which is in a solaris environment. What is the code that i can use in macro to help me with that ? Basically, the code need to telnet or ftp to the solaris environment and just run the script and the macro will output in an... (1 Reply)
Discussion started by: Raynon
1 Replies
4. UNIX for Advanced & Expert Users
Greetings all,
I'll just like to know if it is possible to launch a shell script automatically upon a user's successful login into ssh from a remote host, without adding a command parameter to the ssh command...
ie. after keying in ssh username@host (not ssh username@host "command") and upon... (1 Reply)
Discussion started by: rockysfr
1 Replies
5. Programming
Hello,
in the application i'm writing i need to launch "recordmydesktop" to capture the screen,but i'm having a problem: when the recording stops,and the encoding of the saved file starts,the entire system hangs until the completion of the encoding.This happens if i launch recordmydesktop from my... (7 Replies)
Discussion started by: Zipi
7 Replies
6. Shell Programming and Scripting
Hi All,
OS:AIX 64 bits
Would like to know what is the command to launch vnc session from unix shell script so that Reports server is started from vnc session which should be launched from within the shell script.
Thanks for your time!
Regards, (0 Replies)
Discussion started by: a1_win
0 Replies
7. Shell Programming and Scripting
Hi i wanted to know if any one can give me an example on how to launch a windows program in a perl script. I wanted to open the nmap software on my computer with a perl script, i heard this can be done with the system function. Would the function be in this format:
$text =... (1 Reply)
Discussion started by: kingbp
1 Replies
8. Shell Programming and Scripting
So I am attempting to get a short but complex perl script to be able to time out an application that I will launch from a command line. The terminal I use is MKS C SHELL and I am having trouble doing the a job spawn that will launch the application and keep time on it.
I know you could do this... (1 Reply)
Discussion started by: vas28r13
1 Replies
9. UNIX for Dummies Questions & Answers
I'm trying to write a simple shell script that looks at a given text file and if the only word in the file is 'completed', it launches another shell script.
So far I have this almost working...
if grep 'completed' $datafile
then...
however, using this logic the secondary shell script... (3 Replies)
Discussion started by: MickeyGreen
3 Replies
10. Shell Programming and Scripting
I want to create a simple html page that should contain 2 fields in which the user can write the input. Then I want to have a button that should launch a shell script with the parameters inserted by user in the fields from the webpage.
This is the code behind my webpage:
<html>
<form... (2 Replies)
Discussion started by: black_fender
2 Replies
LEARN ABOUT DEBIAN
xsession.options
Xsession.options(5) File Formats Manual Xsession.options(5)
NAME
Xsession.options - configuration options for Xsession(5)
DESCRIPTION
/etc/X11/Xsession.options contains a set of flags that determine some of the behavior of the Xsession(5) Bourne shell (sh(1)) script. See
the Xsession(5) manpage for further information.
Xsession.options may contain comments, which begin with a hash mark ('#') and end at the next newline, just like comments in shell scripts.
The rest of the file consists of options which are expressed as words separated by hyphens, with only one option per line. Options are
enabled by simply placing them in the file; they are disabled by prefixing the option name with 'no-'.
Available options are:
allow-failsafe
If the 'failsafe' argument is passed to the Xsession script, an emergency X session is invoked, consisting of only an x-termi-
nal-emulator(1) in the upper-left hand corner of the screen. No window manager is started. If an x-terminal-emulator program is
not available, the session exits immediately.
allow-user-resources
If users have a file called .Xresources in their home directories, these resources will be merged with the default X resources when
they log in.
allow-user-xsession
If users have an executable file called .xsession in their home directories, it can be used as the startup program for the X session
(see Xsession(5)). If the file is present but not executable, it may still be used, but is assumed to be a Bourne shell script, and
executed with sh(1).
use-session-dbus
If the dbus package is installed, the session bus will be activated at X session launch.
use-ssh-agent
If the ssh-agent(1) program is available and no agent process appears to be running already, the X session will be invoked by
exec'ing ssh-agent with the startup command, instead of the startup command directly.
All of the above options are enabled by default. Additional options may be supported by the local administrator. Xsession(5) describes
how this is accomplished.
AUTHORS
Stephen Early, Mark Eichin, and Branden Robinson developed Debian's X session handling scripts. Branden Robinson wrote this manual page.
SEE ALSO
Xsession(5), ssh-agent(1), x-terminal-emulator(1)
Debian Project 2004-10-31 Xsession.options(5)