Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 18th, 2007, 05:35 AM
Pet Farrari
Guest
 
Posts: n/a
Default autologin

HI,

I want to use a perl script to add email folder, but the script I wrote
doesnt seem right.

Here is the code:

line 1: open(CYRADMIN, "| /usr/local/bin/cyradm --user testuser -s
testserver");
line 2: print CYRADMIN $password;
line 3: print CYRADMIN "\n";
line 4: close(CYRADMIN);

when I execute the above code, it shown me a "Password:" prompt waiting
for me to enter a password. But line 2 of the code is already written a
password to it. Can anyone tell me how to correct this error?


Thanks
S
  #2  
Old January 18th, 2007, 10:15 AM
Lars Haugseth
Guest
 
Posts: n/a
Default Re: autologin


* Pet Farrari <pf@auth.net.auwrote:
Quote:
>
HI,
>
I want to use a perl script to add email folder, but the script I
wrote doesnt seem right.
>
Here is the code:
>
line 1: open(CYRADMIN, "| /usr/local/bin/cyradm --user testuser -s
testserver");
line 2: print CYRADMIN $password;
line 3: print CYRADMIN "\n";
line 4: close(CYRADMIN);
>
when I execute the above code, it shown me a "Password:" prompt
waiting for me to enter a password. But line 2 of the code is already
written a password to it. Can anyone tell me how to correct this error?
Use the Cyrus::IMAP::Admin module.

--
Lars Haugseth

"If anyone disagrees with anything I say, I am quite prepared not only to
retract it, but also to deny under oath that I ever said it." -Tom Lehrer
  #3  
Old January 21st, 2007, 11:45 PM
Pet Farrari
Guest
 
Posts: n/a
Default Re: autologin

Lars Haugseth wrote:
Quote:
* Pet Farrari <pf@auth.net.auwrote:
Quote:
>HI,
>>
>I want to use a perl script to add email folder, but the script I
>wrote doesnt seem right.
>>
>Here is the code:
>>
>line 1: open(CYRADMIN, "| /usr/local/bin/cyradm --user testuser -s
>testserver");
>line 2: print CYRADMIN $password;
>line 3: print CYRADMIN "\n";
>line 4: close(CYRADMIN);
>>
>when I execute the above code, it shown me a "Password:" prompt
>waiting for me to enter a password. But line 2 of the code is already
>written a password to it. Can anyone tell me how to correct this error?
>
Use the Cyrus::IMAP::Admin module.
>
This is a bad module and I have numerous issues when running this
module. The right one should be IMAP::Admin. The problem had been resolved.

Thanks
Sam


 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles