Sponsored Content
Full Discussion: print command
Top Forums Shell Programming and Scripting print command Post 302372274 by djehresmann on Tuesday 17th of November 2009 02:03:19 PM
Old 11-17-2009
That did it.


Thanks!!!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Print command in linux

What is the equivalent of print for linux scripts? I've scripted in unix, but went to try and do a script in linux, red hat 6.2, and it said print command not found. i.e.: print 'Enter answer' read answer . . . etc. (2 Replies)
Discussion started by: kymberm
2 Replies

2. UNIX for Dummies Questions & Answers

perl print command

Hi, I am running this command in perl print "this is a test message @1.00 pm\n" but the output i am getting as this is a test message .00 pm pls help, how to get the proper output (2 Replies)
Discussion started by: vasikaran
2 Replies

3. Shell Programming and Scripting

Problem with print command

Hi, I have a small script and am having problem at one point. The script runs another script called Run_SQL.sh. All I am trying to do is if the return code from the script is not zero(0) then display some message(which is working fine) and if the return code is zero then run the SED command and... (2 Replies)
Discussion started by: rkumar28
2 Replies

4. UNIX for Dummies Questions & Answers

What command do you use to clear the print que?

Hi, I have a user that has tried to print a job several times and has now filled up the que. How do i delete all the jobs in the que and what is the command?:confused: (1 Reply)
Discussion started by: nov_user
1 Replies

5. UNIX for Dummies Questions & Answers

print: command not found

Hi I have print Apple >> /tmp/temp7.xls as part of my shell script. But when I execute I have the following error. Please help. RT.sh: line 801: print: command not found (5 Replies)
Discussion started by: pk_eee
5 Replies

6. Shell Programming and Scripting

How to check status of last print command?

I am working on an Linux based application where I am using lp -onobanner -s -d$RPTDEST command to print the file on desired printer. Variable $RPTDEST could be different each time even for the same user. I need to implent the check if last print command was succesful or not, so that application... (3 Replies)
Discussion started by: dpmore
3 Replies

7. Shell Programming and Scripting

print command in awk

Hi can print command in awk take the variable and write its value in the file? Excerpt from my shell script. for some reason, $proc is being written in the file instead of its value. can someone tell me what is the issue? for proc in EH LOGEV do echo $proc ./plist -P $proc |... (2 Replies)
Discussion started by: lookinginfo
2 Replies

8. Shell Programming and Scripting

Not able Print next command

Hi All, I'm wrting one script which checks health of the server.But couldn't understand why script is not printing any value for this also its not allowing to print other command just after this. ps -aef |egrep -i "fcm|comm" (1 Reply)
Discussion started by: netdbaind
1 Replies

9. Shell Programming and Scripting

Print command issue

Hi, OS - Linux Print command is working in some scripts and not working in some other scripts. We migrated the scripts from HP UX to Linux. Default shell - korn By using printf it working. But why these difference? Thanks (6 Replies)
Discussion started by: nag_sathi
6 Replies

10. UNIX for Dummies Questions & Answers

Tree command does not print properly

Hi, when I run tree command in linux box getting below image, not the line test âââ lost+found âââ test1 â  âââ aaa.txt â  âââ bbb.txt âââ test2 3 directories, 2 files installed tree-1.5.3-2.el6.x86_64 package (8 Replies)
Discussion started by: stew
8 Replies
Trace(3pm)						User Contributed Perl Documentation						Trace(3pm)

NAME
Devel::Trace - Print out each line before it is executed (like "sh -x") SYNOPSIS
perl -d:Trace program DESCRIPTION
If you run your program with "perl -d:Trace program", this module will print a message to standard error just before each line is executed. For example, if your program looks like this: #!/usr/bin/perl print "Statement 1 at line 4 "; print "Statement 2 at line 5 "; print "Call to sub x returns ", &x(), " at line 6. "; exit 0; sub x { print "In sub x at line 12. "; return 13; } Then the "Trace" output will look like this: >> ./test:4: print "Statement 1 at line 4 "; >> ./test:5: print "Statement 2 at line 5 "; >> ./test:6: print "Call to sub x returns ", &x(), " at line 6. "; >> ./test:12: print "In sub x at line 12. "; >> ./test:13: return 13; >> ./test:8: exit 0; This is something like the shell's "-x" option. DETAILS
Inside your program, you can enable and disable tracing by doing $Devel::Trace::TRACE = 1; # Enable $Devel::Trace::TRACE = 0; # Disable or Devel::Trace::trace('on'); # Enable Devel::Trace::trace('off'); # Disable "Devel::Trace" exports the "trace" function if you ask it to: import Devel::Trace 'trace'; Then if you want you just say trace 'on'; # Enable trace 'off'; # Disable TODO
o You should be able to send the trace output to the filehandle of your choice. o You should be able to specify the format of the output. o You should be able to get the output into a string. We'll see. LICENSE
Devel::Trace 0.11 and its source code are hereby placed in the public domain. Author Mark-Jason Dominus (C<mjd-perl-trace@plover.com>), Plover Systems co. See the C<Devel::Trace.pm> Page at http://www.plover.com/~mjd/perl/Trace for news and upgrades. perl v5.14.2 2012-02-16 Trace(3pm)
All times are GMT -4. The time now is 08:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy