Sponsored Content
Top Forums Shell Programming and Scripting send y /n to a procces after itīs running Post 302204331 by Franklin52 on Wednesday 11th of June 2008 10:09:00 AM
Old 06-11-2008
Maybe you can try to pipe the output of the yes command to your program, something like:

Code:
yes | yourprogram

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to prevent job1 from running while job2 is running..

Hi, Please I need your expert advise on how to prevent/lock from execution job1 while job2 is still running in Unix... THanks:) (3 Replies)
Discussion started by: tikang
3 Replies

2. Shell Programming and Scripting

send mail after script finishes running

Hi All, We now have a Log file which has time stamps of all the scripts ran. It has start time and end time. I now have a requirement to send mail to the Admin after the script finishes running. Can some one help me with a Script which will send mail with Start time and End time of the... (2 Replies)
Discussion started by: srikanthgr1
2 Replies

3. Shell Programming and Scripting

Is there a way to ask expect wait for sometime before running the next send command ?

Hi all, After expect catches the string I specify, is there a way to ask expect wait for sometime before running the next send command ? So my script looks like following, expect "some string" #How to ask expect to wait for a while send "next command" The reason I want to do this is... (0 Replies)
Discussion started by: qiulang
0 Replies

4. UNIX for Advanced & Expert Users

send a new value to a variable in a running background process

Hi guys, I have a issue with a background process, I need to update the value of a variable in that process which is running at this time and it will be running for at least 2 days. Any idea? I will apreciate your help. regards. Razziel. (2 Replies)
Discussion started by: razziel
2 Replies

5. UNIX for Advanced & Expert Users

send attachments using send mail in Solaris

Hi All, I have a requirement to send and email of body html with an attachment. concatinating uuencode output to the mail body with mailx command works, but as my Email body is of HTML type i use sendmail. my command to send HTML body is as below: export MAILTO="recipient@domain.com"... (1 Reply)
Discussion started by: mohan_kumarcs
1 Replies

6. Shell Programming and Scripting

Running Total Running Wild

Hi. A shell scripting newbie here. I am trying to write a script that will create a running total of Sales, and increment a counter for each Sales entry, but when I executed the program it never stopped. counter=0 Sales=0 echo "enter sales price" read sales while do let counter=counter+1... (6 Replies)
Discussion started by: Ccccc
6 Replies

7. AIX

Able to send mail without running MTA (sendmail)?

Hi, I am facing a (for me and coworkers) strange behaviour. When I stop sendmail on a plain AIX 5.3 testing box (there is definetly no sendmail process left running anymore), I am still able to send mails to remote addresses via the mail command. I tried that on another box which is not a... (6 Replies)
Discussion started by: zaxxon
6 Replies

8. Shell Programming and Scripting

Script to send email after comparing the folder permissions to a certain permission & send email

Hello , I am trying to write a unix shell script to compare folder permission to say drwxr-x-wx and then send an email to my id in case the folders don't have the drwxr-x-wx permissions set for them . I have been trying to come up with a script for few days now , pls help me:( (2 Replies)
Discussion started by: nairshar
2 Replies

9. UNIX for Beginners Questions & Answers

Grep the 'not running' jobs and will send the update in mail with its name(job)

my request is: i have to create a script , which will grep the 'not running' jobs and will send the update in mail with its name(job) Scenario: logged in to machine abc went to particular path: cd /a/b/c then ./script1.sh status (script.sh is a script,whose status gives info about 10 jobs... (1 Reply)
Discussion started by: learner987
1 Replies

10. UNIX Desktop Questions & Answers

Need to send mail only when the job is not running

I have set up a cron, which will send the mail with not runnnig jobs in the script.sh 15,30,45 * * * * /a/b/c/script.sh | grep not | mail -s "test mail" learner987@gmail.com But i dont want mail when all the jobs are running, but with the above cron i will get mails without the content(if all... (2 Replies)
Discussion started by: learner987
2 Replies
Trace(3pm)						User Contributed Perl Documentation						Trace(3pm)

NAME
Debug::Trace - Perl extension to trace subroutine calls SYNOPSIS
perl -MDebug::Trace=foo,bar yourprogram.pl DESCRIPTION
Debug::Trace instruments subroutines to provide tracing information upon every call and return. Using Debug::Trace does not require any changes to your sources. Most often, it will be used from the command line: perl -MDebug::Trace=foo,bar yourprogram.pl This will have your subroutines foo() and bar() printing call and return information. Subroutine names may be fully qualified to denote subroutines in other packages than the default main::. By default, the trace information is output using the standard warn() function. MODIFIERS Modifiers can be inserted in the list of subroutines to change the default behavior of this module. All modifiers can be used in three ways: o ":"name to enable a specific feature. o ":no"name to disable a specific feature. o ":"name"("value")" to set a feature to a specific value. In general, ":"name is equivalent to ":"name"(1)", while ":no"name corresponds to ":"name"(0)". The following modifiers are recognized: :warn Uses warn() to produce the trace output (default). ":nowarn" Sends trace output directly to STDERR. :caller Add basic call information to the trace message, including from where the routine was called, and by whom. This is enabled by default. :stacktrace Add a stack trace (call history). :maxlen(length) Truncate the length of the lines of trace information to length characters. The following modifiers can be used to control the way Data::Dumper prints the values of parameters and return values. See also Data::Dumper. :indent Controls the style of indentation. It can be set to 0, 1, 2 or 3. Style 0 spews output without any newlines, indentation, or spaces between list items. :indent(0) is the default. :useqq When enabled, uses double quotes for representing string values. Whitespace other than space will be represented as "[ ]", "unsafe" characters will be backslashed, and unprintable characters will be output as quoted octal integers. This is the default, use ":nouseqq" to disable. :maxdepth(depth) Can be set to a positive integer that specifies the depth beyond which which we don't print structure contents. The default is 2, which means one level of array/hashes in argument lists and return values is expanded. If you use ":nomaxdepth" or :maxdepth(0), nested structures are fully expanded. :quotekeys Controls wether hash keys are always printed quoted. The default is ":noquotekeys". sortkeys Controls whether hash keys are dumped in sorted order. The default is ":nosortkeys". Modifiers apply only to the subroutines that follow in the list of arguments. METHODS
None, actually. Everything is handled by the module's import. ENVIRONMENT VARIABLES
Environment variable "PERL5DEBUGTRACE" can be used to preset initial modifiers, e.g.: export PERL5DEBUGTRACE=":warn:indent(2):nomaxdepth:quotekeys" SEE ALSO
Data::Dumper, Carp AUTHOR
Jan-Pieter Cornet <jpc@cpan.org>; Jos Boumans <kane@cpan.org>; Johan Vromans <jv@cpan.org>; This is an Amsterdam.pm production. See http://amsterdam.pm.org. COPYRIGHT
Copyright 2002 Amsterdam.pm. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.8.8 2005-06-12 Trace(3pm)
All times are GMT -4. The time now is 03:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy