03-08-2013
How to display information of the script while its running?
how to display the messages on screen IN PERL such as "
1. Entering while loop" if the script enters a while loop.
2. Checking FILENAME. etc...
3. Print statement is also not helpful....
Last edited by Rashid Khan; 03-08-2013 at 05:44 AM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everybody!
1. Can someone explain, how to obtain the information about every logical volume in the system?
2. And then list vtoc on every volume in the system?
O.S.: UnixWare 7.1.*
shell: ksh (1 Reply)
Discussion started by: gold4u
1 Replies
2. AIX
Runing p550Q via HMC
I'd like to start using graphic interface CDE:
lslpp -l | grep X11.Dt*
X11.Dt.ToolTalk -- AIX CDE ToolTalk Support
X11.Dt.bitmaps -- AIX CDE Bitmaps
X11.Dt.helpmin -- AIX CDE Minimum Help Files
X11.Dt.helprun -- AIX CDE Runtime Help
X11.Dt.lib -- AIX CDE... (0 Replies)
Discussion started by: silves
0 Replies
3. Shell Programming and Scripting
hi is there any way i can display a countdown time needed to run a script? like load a counter at the beginning of the script with the estimated time and display the counter decrementing till it finishes running the script? (3 Replies)
Discussion started by: npatwardhan
3 Replies
4. Shell Programming and Scripting
Hi ,
We have 6 informatica workflow engine running on our server , so if we do a
ubnf0010% ps -ef |grep workflow |grep "TCPP01 TCPP01"
atlmsts 12721 1 0 06:52:18 ? 14:58 workflow TCPP01 TCPP01 1
atlmsts 14415 1 0 06:52:44 ? 14:56 workflow TCPP01 TCPP01 2
... (8 Replies)
Discussion started by: viv1
8 Replies
5. Shell Programming and Scripting
Hi all,
How to:
Run a bash script, display on the screen and save all information in a file including error information.
For example:
I have a bash script called test.sh
now I want to run the test.sh and display the output on the screen and save the output including error info to a file.
... (1 Reply)
Discussion started by: Damon sine
1 Replies
6. Programming
I am trying to store this information (info and number) in hash. number is the key and info is value in a hash.i shown my code below.
#!/usr/bin/perl
use warnings;
use strict;
use XML::LibXML::Reader;
my $file;open $file, 'formal.xml');
my $reader =... (0 Replies)
Discussion started by: veerubiji
0 Replies
7. UNIX for Dummies Questions & Answers
Suppose I am a Unix user, not a root.
I can see all commands in running by ps -elf, or some similar commands. Such commands may be submit by other Unix users.
Is there a way that I can display those commands with their full parameters/options. For example, I can see a user is running "ls"... (3 Replies)
Discussion started by: happy_lotus
3 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Quick question, someone will hopefully be able to stop me from :wall:.
I currently have a script which calls a script on a remote machine and captures the stdout to a file:
ssh <user>@<server> > output 2>/dev/null <<_EOF
/path/script.ksh
_EOF
This runs the script but the... (4 Replies)
Discussion started by: chris01010
4 Replies
9. Shell Programming and Scripting
I'm trying to create a ksh script to do the following:
1) Ask the user what process they want to search for.
2) Have the script read the input as a variable and use it to search for the process.
3) Display the current time & date, the working directory of the process, and finally display the... (6 Replies)
Discussion started by: seekryts15
6 Replies
10. Shell Programming and Scripting
In unix systems I can call `file` to return me the file type.
file cel.vik
$ cel.vik: ASCII text
How can I append additional information when I create a file such that when I call `file` it returns me that additional information. (2 Replies)
Discussion started by: kristinu
2 Replies
LEARN ABOUT PHP
ignore_user_abort
IGNORE_USER_ABORT(3) 1 IGNORE_USER_ABORT(3)
ignore_user_abort - Set whether a client disconnect should abort script execution
SYNOPSIS
int ignore_user_abort ([string $value])
DESCRIPTION
Sets whether a client disconnect should cause a script to be aborted.
When running PHP as a command line script, and the script's tty goes away without the script being terminated then the script will die the
next time it tries to write anything, unless $value is set to TRUE
PARAMETERS
o $value
- If set, this function will set the ignore_user_abort ini setting to the given $value. If not, this function will only return the
previous setting without changing it.
RETURN VALUES
Returns the previous setting, as an integer.
EXAMPLES
Example #1
A ignore_user_abort(3) example
<?php
// Ignore user aborts and allow the script
// to run forever
ignore_user_abort(true);
set_time_limit(0);
echo 'Testing connection handling in PHP';
// Run a pointless loop that sometime
// hopefully will make us click away from
// page or click the "Stop" button.
while(1)
{
// Did the connection fail?
if(connection_status() != CONNECTION_NORMAL)
{
break;
}
// Sleep for 10 seconds
sleep(10);
}
// If this is reached, then the 'break'
// was triggered from inside the while loop
// So here we can log, or perform any other tasks
// we need without actually being dependent on the
// browser.
?>
NOTES
PHP will not detect that the user has aborted the connection until an attempt is made to send information to the client. Simply using an
echo statement does not guarantee that information is sent, see flush(3).
SEE ALSO
connection_aborted(3), connection_status(3), Connection Handling for a complete description of connection handling in PHP. .
PHP Documentation Group IGNORE_USER_ABORT(3)