Sponsored Content
Top Forums Shell Programming and Scripting Executing perl script in Linux gives :Exec format error. Wrong Architecture Post 302909922 by Corona688 on Monday 21st of July 2014 11:01:59 AM
Old 07-21-2014
Quote:
Originally Posted by busi386
nine times out of ten this is the problem.

I have seen numerous files not work properly because they were ftp over in binary instead of ASCII and vise versa.
I can understand the latter, but not the former. The former should leave them unchanged no matter what.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

perl regexp error , I cant understand what is wrong

perl regexp error , I cant understand what is wrong Hello all I have simple perl regexp that is searching for pattern in string and replace it with the same string + addition string here is what I have : my $rec = q| new Array("Attributes Management" ... (4 Replies)
Discussion started by: umen
4 Replies

2. Shell Programming and Scripting

Perl Script issue. What am I doing wrong?

#!/usr/local/bin/perl open (MYFILE, 'logs_report'); while (<MYFILE>) { $rec=$_; chomp ($rec); @arr=split(/ /,$rec); print $rec,"\n" if ($arr!~/OK/); open (MYF, '>data.txt'); print $rec,"\n" if ($arr!~/OK/); close (MYF); (14 Replies)
Discussion started by: SkySmart
14 Replies

3. Shell Programming and Scripting

Error executing shell command from a perl script

Hi Gurus, I've a find command that gets the list of files from a source directory where the extension is not html, xml, jsp, shtml or htaccess. The below find command runs fine from the command prompt or in a shell script. I need to eventually run it in a PERL script and am getting the... (5 Replies)
Discussion started by: voorkey
5 Replies

4. Shell Programming and Scripting

Error executing shell script in Linux

Hi, I have following shell script code : ------------------------------------------------------------------ #!/bin/bash SCRIPTS_DIR="/scriptsDir1" # tables login/password APIL_USER="uname/pswd" I2_USER="uname/pswd" # Database DB="db1" cd "$SCRIPTS_DIR/scriptsDir2" sqlplus... (2 Replies)
Discussion started by: Chaitrali
2 Replies

5. Linux

Error executing shell script in Linux

Hi, I have following shell script code : ------------------------------------------------------------------ #!/bin/bash SCRIPTS_DIR="/scriptsDir1" # tables login/password APIL_USER="uname/pswd" I2_USER="uname/pswd" # Database DB="db1" cd "$SCRIPTS_DIR/scriptsDir2" sqlplus... (1 Reply)
Discussion started by: Chaitrali
1 Replies

6. Shell Programming and Scripting

wrong output in perl script

Hi, Here is my piece of code-- #!/usr/bin/perl my $Time_Stamp ; my $User_Name; my $Success; my $Failure; my $ErrorCode; my $ErrorMsg; my $logDir = $ARGV; my $logPrefix = $ARGV; die "usage: $0 <logDir> <logPrefix>" unless $logDir and $logPrefix; die "Log dir $logDir doesn't... (2 Replies)
Discussion started by: namishtiwari
2 Replies

7. Shell Programming and Scripting

Error in executing Perl script

Hello All I am facing an issue The unix script is running fine in unix environment which uses ssh connection but when I try to run the same in informatica environment (same server where I was running the unix script manually successfully) its showing the below error command-line line 0:... (11 Replies)
Discussion started by: Pratik4891
11 Replies

8. Shell Programming and Scripting

What is wrong with my perl script?

i managed to write a perl script for nagios. now, the script works. but i think there's somethign wrong with the exit codes. because the script doesn't show the output of the results in nagios, it instead shows null. please tell me what i'm doing wrong here: #!/usr/local/bin/perl use... (2 Replies)
Discussion started by: SkySmart
2 Replies

9. Shell Programming and Scripting

what's wrong with my -exec in find

find ./ -name *Kconfig -exec cat {} \; but it won't work with find ./ -name *Kconfig -exec cat {} |grep CONFIG_MTD |grep depend \; how could I handle this (14 Replies)
Discussion started by: yanglei_fage
14 Replies

10. Shell Programming and Scripting

Script Output coming in wrong format....

Hi team, getting output logs wrong in different format from telnet script ... getting Output.txt macro_outdoor_dist-6.0.0(v4_0_2) DN:1.3.903 (1101:100:11w:500:3:2:103:aa) macro_outdoor_dist-8.1.0(v3_1_0) DN:1.3.409 (N/A)... (3 Replies)
Discussion started by: Ganesh Mankar
3 Replies
otl2pdb(1)						      General Commands Manual							otl2pdb(1)

NAME
otl2pdb - converts vimoutliner outline to AddressDB Palm file. SYNOPSIS
otl2pdb [filename] DESCRIPTION
This manual page documents briefly the otl2pdb Perl script. otl2pdb is a perl(1) script that takes an outline from vimoutliner(1) with contact information and creates an AddressDB.pdb file for a Palm. For now this script can only create a .pdb file. You then have to use a syncing tool to load it into your Palm. I recommend the pilot- link package for linux. The format of the contact outline is the following: $category $record_name c:$cell a:$address .... You can have as many categories and records(entries) as you want. The following are valid fields for a record with the necessary text to indicate them in quotes: 'a:'-address 'c:'-cell 'e:'-email 'h:'-home phone 'n:'-note 'web:'-website 'w:'-work phone Also, each record's category is left as 'Unfiled' as I can't get the record's category to write correctly. SEE ALSO
vim(1), perl(1) REQUIREMENTS
This program uses the Palm::Address perl module, which is available on CPAN. TIPS
If using the pilot-link package: -load the pdb with 'pilot-xfer -i AddressDB.pdb' -specify the serial port if other than /dev/pilot (which will usually be the case unless you link to it) with -p in the above command; usually this is /dev/ttyS0 in linux AUTHOR
The original version was written by Gabriel Walker <cldwalker@chwhat.com>. If you like using perl, linux, vim and databases to make your life easier (not lazier ;) check out my website at http://www.chwhat.com. <http://www.chwhat.com> This manual page was written by Matej Cepl <matej@ceplovi.cz> (using perldoc(1) part of the documented script), for the Debian GNU/Linux system (but may be used by others). January 13, 2005 otl2pdb(1)
All times are GMT -4. The time now is 01:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy