10-14-2008
What is this line doing?
t" , $array[1][$k] , "\n";
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello everyone,
I'm a starting website admin who 2 days ago decided to make the move from shared hosting to a vps on a linux (ubuntu 8.04) platform. This opened a whole new world for me, since I never worked with the console, SSH, linux,... before. I managed to get LAMP setup after a day of... (2 Replies)
Discussion started by: Cooki3s!
2 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 PHP
imap_headerinfo
IMAP_HEADERINFO(3) 1 IMAP_HEADERINFO(3)
imap_headerinfo - Read the header of the message
SYNOPSIS
object imap_headerinfo NULL (resource $imap_stream, int $msg_number, [int $fromlength], [int $subjectlength], [string $defaulthost])
DESCRIPTION
Gets information about the given message number by reading its headers.
PARAMETERS
o $
imap_stream -An IMAP stream returned by imap_open(3).
o $msg_number
- The message number
o $fromlength
- Number of characters for the fetchfrom property. Must be greater than or equal to zero.
o $subjectlength
- Number of characters for the fetchsubject property Must be greater than or equal to zero.
o $defaulthost
-
RETURN VALUES
Returns the information in an object with following properties:
o toaddress - full to: line, up to 1024 characters
o to - an array of objects from the To: line, with the following properties:
personal, adl, mailbox, and host
o fromaddress - full from: line, up to 1024 characters
o from - an array of objects from the From: line, with the following properties:
personal, adl, mailbox, and host
o ccaddress - full cc: line, up to 1024 characters
o cc - an array of objects from the Cc: line, with the following properties:
personal, adl, mailbox, and host
o bccaddress - full bcc: line, up to 1024 characters
o bcc - an array of objects from the Bcc: line, with the following properties:
personal, adl, mailbox, and host
o reply_toaddress - full Reply-To: line, up to 1024 characters
o reply_to - an array of objects from the Reply-To: line, with the following properties:
personal, adl, mailbox, and host
o senderaddress - full sender: line, up to 1024 characters
o sender - an array of objects from the Sender: line, with the following properties:
personal, adl, mailbox, and host
o return_pathaddress - full Return-Path: line, up to 1024 characters
o return_path - an array of objects from the Return-Path: line, with the following properties:
personal, adl, mailbox, and host
o remail -
o date - The message date as found in its headers
o Date - Same as date
o subject - The message subject
o Subject - Same as subject
o in_reply_to -
o message_id -
o newsgroups -
o followup_to -
o references -
o Recent -
R if recent and seen, N if recent and not seen, ' ' if not recent.
o Unseen -
U if not seen AND not recent, ' ' if seen OR not seen and recent
o Flagged -
F if flagged, ' ' if not flagged
o Answered -
A if answered, ' ' if unanswered
o Deleted -
D if deleted, ' ' if not deleted
o Draft -
X if draft, ' ' if not draft
o Msgno - The message number
o MailDate -
o Size - The message size
o udate - mail message date in Unix time
o fetchfrom - from line formatted to fit $fromlength characters
o fetchsubject - subject line formatted to fit $subjectlength characters
SEE ALSO
imap_fetch_overview(3).
PHP Documentation Group IMAP_HEADERINFO(3)