LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-26-2009, 04:24 AM   #1
visva
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
no error message from PERL when i use bash command


hi,

I am using ubuntu 9.10 and perl5.10.1. I have a strange problem. I am trying to call a program (using bash command) from perl. for eg

`/home/nitin/software/clustalw filename`;


I knew that there is no file "clustalw" in this path. I expect perl to warn "No such file or directory" But in my case, there is no error message or warning message.


Kindly help me to solve this.

visva
 
Old 11-26-2009, 06:21 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
It's up to you to grab the return code from the call and do something with it

cheers
 
Old 11-26-2009, 06:47 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
See the qx section here http://perldoc.perl.org/perlop.html#...Like-Operators for a full explanation plus example howtos.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
perl error message charlie_lab Linux From Scratch 0 05-27-2009 03:28 AM
Perl error message processing 2007fld Programming 2 07-22-2008 08:17 PM
If bash command can send message to a host ? naihe2010 Programming 4 10-29-2005 04:28 PM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 08:18 AM


All times are GMT -5. The time now is 04:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration