03-13-2009
Quote:
Originally Posted by
cfajohnson
You would need a method to communicate with the running process and have it start the child process.
Interesting...something like IPC..eh? but how? any ideas?
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi everyone,
I have a question about the java object oriented function which to simulate in bash script...
here is the function
"session.getMaxInactiveInterval() / 60 "
got any web can read this function? coz i need to simulate to bash script...
Hope someone give me a suggestion... (0 Replies)
Discussion started by: ryanW
0 Replies
2. UNIX for Advanced & Expert Users
Hi,
I was logged in on a server, by ssh, with a vim open, when the battery of my laptop got empty.
When I return to the server by ssh, I can see my previous ssh session still open, and the vim process running (ttyp0). Is there a way to attach that vim to my new session (ttyp4)?
Here's part... (2 Replies)
Discussion started by: raphinou
2 Replies
3. Shell Programming and Scripting
I'm looking at allowing remote telnet into my server.
like any security-minded administrator, I want to log what my users type on the telnet session.
I'm using the script command to generate transcripts of the users session.
I have /etc/profile set to automatically start the script command... (2 Replies)
Discussion started by: ramnet
2 Replies
4. UNIX for Dummies Questions & Answers
Hello
How to configure, or where to have each session history in different file
Example: someone is connecting as root and at this time is creating file in which we have history of executed command
to server is connecting another user and is created another file with command executed by... (1 Reply)
Discussion started by: vikus
1 Replies
5. Solaris
Hi All,
Do we have any option through which we can limit the number of process which can be started by single user session.
Thanks (3 Replies)
Discussion started by: kumarmani
3 Replies
6. Shell Programming and Scripting
Hey all, I need to launch a script from within 2 other scripts that can run independently of the two parent scripts... Im having a hard time doing this, if anyone knows how please let me know.
More detail.
ScriptA (bash), ScriptB (ksh), ScriptC (bash)
ScriptA, launches ScriptB
ScirptB,... (7 Replies)
Discussion started by: trey85stang
7 Replies
7. Shell Programming and Scripting
Hi
i am trying to run a report which takes approx 5 hours to complete so what i did i put that reporting command in background and then this reporting process started executed in background but the problem is when i close that session that background job lost :( ....
please help me that... (3 Replies)
Discussion started by: aishsimplesweet
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
sorry if this is the wrong forum for this question but I couldnt spot another obvious forum for it.
I have a windows shortcut which opens up a saved session in putty. From this session I then ssh to another remote server. I was wondering is there a way that I can either edit my shortcut... (2 Replies)
Discussion started by: newb1000
2 Replies
9. Emergency UNIX and Linux Support
I am running a process in nohup .
nohup getkeys.ksh 132 > 132.out &
When I close the putty terminal,The process is getting killed .
default_signal_handler called for signal no: 1
Is there a way to keep the process running even If I close the terminal (2 Replies)
Discussion started by: prasperl
2 Replies
10. Shell Programming and Scripting
Hello.
This command is correct :
find /home/user_install \( \
\( -type d \( -iname "*firefox*" -o -iname ".cache" -o -iname "libreoffice" \
-o -iname "session" -o -wholename "/home/user_install/dir1/dir2/¬¬ICONS_WALLPAPERS_THEMES" \) \) -prune -o \
\( -type f \( -iname... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT REDHAT
cgi::pretty
CGI::Pretty(3pm) Perl Programmers Reference Guide CGI::Pretty(3pm)
NAME
CGI::Pretty - module to produce nicely formatted HTML code
SYNOPSIS
use CGI::Pretty qw( :html3 );
# Print a table with a single data element
print table( TR( td( "foo" ) ) );
DESCRIPTION
CGI::Pretty is a module that derives from CGI. It's sole function is to allow users of CGI to output nicely formatted HTML code.
When using the CGI module, the following code:
print table( TR( td( "foo" ) ) );
produces the following output:
<TABLE><TR><TD>foo</TD></TR></TABLE>
If a user were to create a table consisting of many rows and many columns, the resultant HTML code would be quite difficult to read since
it has no carriage returns or indentation.
CGI::Pretty fixes this problem. What it does is add a carriage return and indentation to the HTML code so that one can easily read it.
print table( TR( td( "foo" ) ) );
now produces the following output:
<TABLE>
<TR>
<TD>
foo
</TD>
</TR>
</TABLE>
Tags that won't be formatted
The <A> and <PRE> tags are not formatted. If these tags were formatted, the user would see the extra indentation on the web browser caus-
ing the page to look different than what would be expected. If you wish to add more tags to the list of tags that are not to be touched,
push them onto the @AS_IS array:
push @CGI::Pretty::AS_IS,qw(CODE XMP);
Customizing the Indenting
If you wish to have your own personal style of indenting, you can change the $INDENT variable:
$CGI::Pretty::INDENT = " ";
would cause the indents to be two tabs.
Similarly, if you wish to have more space between lines, you may change the $LINEBREAK variable:
$CGI::Pretty::LINEBREAK = "
";
would create two carriage returns between lines.
If you decide you want to use the regular CGI indenting, you can easily do the following:
$CGI::Pretty::INDENT = $CGI::Pretty::LINEBREAK = "";
BUGS
This section intentionally left blank.
AUTHOR
Brian Paulsen <Brian@ThePaulsens.com>, with minor modifications by Lincoln Stein <lstein@cshl.org> for incorporation into the CGI.pm dis-
tribution.
Copyright 1999, Brian Paulsen. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Bug reports and comments to Brian@ThePaulsens.com. You can also write to lstein@cshl.org, but this code looks pretty hairy to me and I'm
not sure I understand it!
SEE ALSO
CGI
perl v5.8.0 2002-06-01 CGI::Pretty(3pm)