- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- run perl script error
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 03:12 PM
тАО05-09-2006 03:12 PM
run perl script error
now I try a perl script ( the script as below ) then pop the error "-bash: use: command not found" , could advise what is the error mean , is "use" a command in linux ? thx.
#!/usr/bin/perl -w
use DBI;
use strict;
"
"
"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 03:41 PM
тАО05-09-2006 03:41 PM
Re: run perl script error
As DBI is a module try this syntax:
#!/usr/bin/perl -w
use DBI ();
use strict;
.
.
.
Hope this helps,
Nigel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 05:54 PM
тАО05-09-2006 05:54 PM
Re: run perl script error
but have the below message , could advise again ? thx
syntax error near unexpected token `('
`use DBI ();'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-09-2006 06:11 PM
тАО05-09-2006 06:11 PM
Re: run perl script error
You could have some hidden characters in it. I had the same message at a time removing the hidden characters fixed it.
BTW, I have the same module on station installed by default...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-10-2006 07:25 AM
тАО05-10-2006 07:25 AM
Re: run perl script error
The error message suggests that bash is processing your perl script, not perl.
So check if /usr/bin/perl exists.
Useful commands to find perl:
locate perl
whereis perl
find / -name perl
Suppose your script is called script.pl. Remove the first line (temporarily) and execute from your bash prompt #:
# perl -w script.pl
If necessary: type full pathname i.s.o. perl, e.g. /usr/local/bin/perl
Also try hello.pl http://www.devdaily.com/perl/edu/articles/pl010001.shtml
Good luck.
JP.
PS.
Check http://forums1.itrc.hp.com/service/forums/helptips.do?#28
;-)