Sponsored Content
Top Forums Shell Programming and Scripting How to use shell command on Perl scritps? Post 302994731 by digioleg54 on Monday 27th of March 2017 12:41:47 PM
Old 03-27-2017
We have a Perl, we don't have the newest version. That is why I have to make something to use shell from Perl. We don't have
Code:
      Filesys::Df

That is why I am looking how to use shell in perl
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Calling perl modules from shell scritps

hi, Is it possible to call a perl function from a perl module from within a shell script. I have a similar requirement. Thanks in advance, Kavitha (1 Reply)
Discussion started by: kavitha
1 Replies

2. Shell Programming and Scripting

perl command help in shell script

Hello friends , I need a help how to call the variable which has define in the shell script in the perl command line. example of the shell scrip : str="hell0" i want print the value of this variable in the perl command line. perl -e 'print $str' but this is not working . can... (2 Replies)
Discussion started by: venky_2_2000
2 Replies

3. Shell Programming and Scripting

XML parsing through shell scritps

Hi, Am new to scripting. :) Am trying to figure out whether can i use bash scripting to parse an xml file. Parsing is not just pulling out information according to the pattern but its more of a generic parsing. I should identify the xml hierarchy and pull out information accordingly. It's not a... (2 Replies)
Discussion started by: karthikvela
2 Replies

4. UNIX for Advanced & Expert Users

Invoking shell script with perl command.

Hi All, I am using the following command to invoke the shell script from a perl command. perl -i.bak -pe'BEGIN { $cmd = "/opt/coreservices/tomcat-5.5.9/bin/digest.sh -a sha"; } s/(password=")(*)/ $1.`$cmd $2|cut -d: -f2|tr -d "\n"` /e ' $CATALINA_HOME/conf/tomcat-users.xml I need... (1 Reply)
Discussion started by: nua7
1 Replies

5. Shell Programming and Scripting

Shell Command execution through PERL

Hi Guys, I wish to execute some shell commands through PERL. Here is what I desire to do 1) I wish to find list of directories in current working location 2) Then go in each directory and execute few commands like a) rm -rf *.log (Shell command) b) coreBuilder -f cb_tests.tcl (Some... (6 Replies)
Discussion started by: hardik_snps
6 Replies

6. Shell Programming and Scripting

running shell command in Perl script

Does not work. #!/usr/bin/perl $etcdir = 'ls -l /etc'; print $etcdir; #END ------------result-------- #perl -w abc123.pl ls -l /etc # This method works. #!/usr/bin/perl $etcdir = system("ls -l /etc"); print $etcdir; #END (2 Replies)
Discussion started by: dplinux
2 Replies

7. UNIX for Dummies Questions & Answers

perl command in shell not working

perl script i am using for search and replace is not working as expected... I am using it for in-place search/replace. I am new to perl, can someone please help me solving the issue here. ########SCRIPT #!/bin/sh var="abc" var2="def" perl -pi -e 's/${var}/def/g' testfile exit 0 ... (0 Replies)
Discussion started by: manishma71
0 Replies

8. Shell Programming and Scripting

ps command through shell and perl

Hi , I have a ps command inside perl script : ps -ef | egrep tail_file.pl | egrep -v egrep | awk '{print $2}' | egrep $pid through shell it's working fine . The same coammnd when executed through PERL , it'd displaying all the results oracle 10141 1 0 2010 ? ... (5 Replies)
Discussion started by: talashil
5 Replies

9. Shell Programming and Scripting

Use shell variable in perl command line

Hi, I would like to use a shell variable $amp in my perl command line. for fa in $WORKSPACE/*.fa; do amp=`grep ">.*" $fa | sed -e's#>\(.*\)#\1#g'` ampsam="$WORKSPACE/$base/$base.$amp.sam" sqheader=`grep "^@SQ.*SN:$amp.*" $sam` printf "$sqheader\n" >> $ampsam ... (3 Replies)
Discussion started by: jdilts
3 Replies

10. Shell Programming and Scripting

Usage of shell variable in perl command

Hi, I have a shell script, In which i have variable "var1" and some perl command inside shell script. export var1='coep -n rst-a2p-hinje.vci.all.com -c' perl -pi -e 's/^/coep -n rst-a2p-hinje.vci.all.com -c /' command.txt currently I am adding value of var1 in command.txt file by... (2 Replies)
Discussion started by: rakeshtomar82
2 Replies
Text::Trac(3pm) 					User Contributed Perl Documentation					   Text::Trac(3pm)

NAME
Text::Trac - Perl extension for formatting text with Trac Wiki Style. VERSION
Version 0.12 SYNOPSIS
use Text::Trac; my $parser = Text::Trac->new( trac_url => 'http://trac.mizzy.org/public/', disable_links => [ qw( changeset ticket ) ], ); $parser->parse($text); print $parser->html; DESCRIPTION
Text::Trac parses text with Trac WikiFormatting and convert it to html format. METHODS
new Constructs Text::Trac object. Available arguments are: trac_url Base URL for TracLinks.Default is /. You can specify each type of URL individually. Available URLs are: trac_attachment_url trac_changeset_url trac_log_url trac_milestone_url trac_report_url trac_source_url trac_ticket_url trac_wiki_url disable_links Specify TracLink types you want to disable. All types are enabled if you don't specify this option. my $parser = Text::Trac->new( disable_links => [ qw( changeset ticket ) ], ); enable_links Specify TracLink types you want to enable.Other types are disabled. You cannot use both disable_links and enable_links at once. my $parser = Text::Trac->new( enable_links => [ qw( changeset ticket ) ], ); parse Parses text and converts it to html format. process An alias of parse method. html Return converted html string. SEE ALSO
Text::Hatena Trac <http://www.edgewall.com/trac/> Trac WikiFormatting <http://projects.edgewall.com/trac/wiki/WikiFormatting> AUTHORS
Gosuke Miyashita, "<gosukenator at gmail.com>" Hideaki Tanaka, "<drawn.boy at gmail.com)>" BUGS
Please report any bugs or feature requests to "bug-text-trac at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Text-Trac>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc Text::Trac You can also look for information at: o AnnoCPAN: Annotated CPAN documentation <http://annocpan.org/dist/Text-Trac> o CPAN Ratings <http://cpanratings.perl.org/d/Text-Trac> o RT: CPAN's request tracker <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Text-Trac> o Search CPAN <http://search.cpan.org/dist/Text-Trac> COPYRIGHT &; LICENSE Copyright 2006 Gosuke Miyashita, 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.10.0 2009-03-08 Text::Trac(3pm)
All times are GMT -4. The time now is 04:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy