05-04-2009
I managed to solve it myself by changing the folder named after the servers ip into 'myip', I guess the script had troubles with the : or the . .
Thx for your response,
Cooki3s!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all
I keep getting a segmentation fault error while running the script below.
#!/usr/bin/perl -w
use CGI ':standard';
use GD::Graph::pie;
use strict;
use warnings;
sub trim($)
{
my $string = shift;
$string =~ s/^\s+//;
$string =~ s/\s+$//;
... (4 Replies)
Discussion started by: pietie
4 Replies
2. Shell Programming and Scripting
Hi,
This is my piece of code.
my $logFile = $ARGV;
die "usage: $0 <logFile>" unless $logFile;
die "Logfile $logFile doesn't exist" unless -f "$logFile";
open(my $log, "<", $logFile) or die "Can't open $logFile for reading.";
print "Processing file $logFile...\n";
#my $authenticates... (2 Replies)
Discussion started by: namishtiwari
2 Replies
3. Shell Programming and Scripting
I solicited this site earlier this week and got a good answer for a perl
Script so I made this script from what understood from the answers
But now I have a bug and I'm stump. It doesn't parse correctly the
Output it stays on the first line My $f2 and reprints in a endless loop
I'm sure there... (3 Replies)
Discussion started by: Ex-Capsa
3 Replies
4. Shell Programming and Scripting
#!/usr/bin/perl
$FL="ch.txt";
$CFL="mytext.txt";
print "This script will rename textfiles.";
mv $FL $CFL;
print "Done.";
perl file.pl
Error:
Can't locate object method "mv" via package "ch.txt" (perhaps you forgot to load "ch.txt"?) at file.pl line 7. (5 Replies)
Discussion started by: cola
5 Replies
5. Shell Programming and Scripting
open(IN,"input_file") or die "Can't open Input file.\n";
while (<IN>) {
chomp;
$line = $_;
if($line != '') {
print "\nprocessing $line\n";
$size = 0;
$hrid = $line;
@project_id_array = null;
$size = @project_id_array;... (3 Replies)
Discussion started by: vishwakar
3 Replies
6. Shell Programming and Scripting
I am getting a strange error with perl's inbuilt script flush.pl. I am callling this script in my other script but it kept throwing error:
flush.pl did not return a true value at ./abc.pl line 1
abc.pl has:
require 'flush.pl';
Not sure why this error is coming. Can someone pls throw... (4 Replies)
Discussion started by: abhisharma23
4 Replies
7. Shell Programming and Scripting
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. Programming
hi
Here is my code written to identify the particular position which is after a string (chr*). my input file looks some thing like this aaanbb:anhn:iuopl:12345 chr1 12345 asnmkol * # kjiiii.....anmkij:lpolk:lopll:abnnj chr5 123222 polko * dddfgg ....
aaanbb:anhn:iuopl:aanjuj chr2 44345 asnmkol... (1 Reply)
Discussion started by: anurupa777
1 Replies
9. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
filename = awkdata
Part 1: Write an awk program that removes the first field and prints only those lines where the third field is greater than 15 million.
Part 2: Do the same command above, but with perl instead of awk.... (0 Replies)
Discussion started by: AZbase10
0 Replies
10. Shell Programming and Scripting
So I have a perl script that prompts the user to enter either q or Q to exit the program or c to continue said program. If the user inputs anything other than those three keys they will be prompted again and again for an appropriate input. My script works for the most part except for one small... (6 Replies)
Discussion started by: Eric1
6 Replies
LEARN ABOUT DEBIAN
otl2pdb
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)