Perl script seems to hang

I'm trying to get the perl scripts that launches our iTunesU page to work but I came to a stand still, quite literally.
I go to our URL, iTunes launches, it selects the Music Store but nothing comes up), then it goes to our itunes.pl script and it sits there for at least couple of minutes and then nothing happens. I'm guessing that our iTunesU page should come up after the perl script runs but that seems to be where things are not working.
No errors, nothing. I enabled the debug option but I don't get any info at all. If I execute the script from the command line, after a couple of minutes I just get:
Content-type: test/html
and nothing else
All the perl modules mentioned in the script are installed, we are running perl version
Any ideas?

My first quesiton is: Are you sure your credentials are correct? If you went to activate your iTunes U, then decided not to and activated it later, the credentials you got in the initial e-mail from Apple would be incorrect.
Also, are you using the sample Perl script that Apple included, or something homegrown?
Ken Newquist
Lafayette College

Similar Messages

  • Perl Scripts in Indagine

    My perl scripts seem to stall at certain points in the data-gathering process using the Indagine software. I don't get back any status report from the site I'm trying to index. I am kind of guessing, but I think it has to do with not being able to establish a connection to the server at the site. Does anyone know if Perl would time-out and simply move on to the next url in this situation, or is that something I need to add to my code as a check? Thanks.

    I found this in a google search.
    http://jeffreytravis.com/lost/labperl.html
    Download link:
    http://jeffreytravis.com/lost/download/LVperl.zip
    Says it is ALPHA. You may need to talk to the developer (Jeffery Travis, VERY well known in LabVIEW community) and see if he has any more information about this.
    Message Edited by MattH on 07-11-2007 11:12 AM
    Matt Holt
    Certified LabVIEW Architect

  • Calling perl script from PLSQL

    Hi All,
    I have created Java stored procedure and oracle function to execute the os commnad, this works fine for calling batch scripts but when i used same function to call perl script,
    like how we call in batch script
    perl <script name> the sql gets hanged.
    Is it possible to call perl like this?
    or is their any other way to call from plsql
    Thanks Chandra

    Are you able to run that perl script at DOS command line?
    Did you call the perl script directly from the java proc or you put the perl command line in a DOS .BAT scirpt and called that from the java proc?

  • Under a GUI, I need to run a perl script, how to do this?

    Hi - I am writing a GUI for my clients and one of the things my program must do is run a perl script. I am able to run perl.exe but it seems like perl.exe is not running the script. I also tried to put the perl script in a batch file and then call the batch file from my java GUI program. I still get the same issue of just perl.exe running but thats not running the script. My last attempt was to write a small class to test if perl.exe can run the script under a command line. I got the perl.exe to run the perl script but how do I but implement that class in my GUI if my test class needs a command line? How can I run a command line in my GUI so the perl script can be run.
    The Runtime.getRuntime.exec(RunPerlScript) is not working like I want it.
    I also tried Runtime r = Runtime.getRuntime();
    Process p = r.exec(RunPerlScript);
    How can I run the MS-DOS prompt from my program if the Runtime Environment is running already. The Runtime Environment seems to not allow another prompt to be opened and from there I can run the perl script manually or automatically from my program.
    What does the "cmd /c start..." or "c:\\windows\\command.com..." do? I have seen that in the forum but it doesn't seem to be running the perl script. The perl.exe runs, but not the perl script. I need anyones help desperately. Damn microsoft, why did they remove completely the functionality of DOS. I have a feeling my program will run perfectly under a UNIX environment, because I needed to do was open another shell. Thats what I need in windows!
    Thank you for your help.
    Seigot

    hi
    I am working on this perl scripts do run on GUI's well the process command is fine try java 1.3 it works fine. if u need more help let me know
    all the best

  • How to run the perl script from java ?

    Hi , I need to run the pearl script from the server and to get the result of the script thro' java using SSH
    Is there any 3rd party SSH API in java ?
    Please help me out
    thanks in advance
    karthik

    This seems like a very strange thing to want to do.
    What is the perl script doing?
    Do other programs (not some shell script) access this server-side perl script from a different machine?
    If so how do they do it?
    What currently triggers the perl script to execute?
    What currently handles the output from the perl script?
    If you can answer these questions (and understand the answers) you should be able to come up with a different approach to this.
    You do not really want to call a remote perl script from a Java program, you want to achieve the effect you think that would have if you could do it.
    So find the answers to the above questions, write them on 3" x 5" cards and lay them out on your desk.
    What flow of control needs to happen? Which piece of code needs to produce or consume which piece of data?
    If that fails, ask you self or who ever is making you do this what are the use-cases?
    If you do not know what use-cases are or do not understand them well enough try reading
    Use Case Modeling (The Addison-Wesley Object Technology Series) by Kurt Bittner and Ian Spence (Paperback - Aug 30, 2002)
    http://www.amazon.com/s/ref=nb_ss_gw/002-7908514-4043267?url=search-alias%3Dstripbooks&field-keywords=use+cases&x=0&y=0
    It is a short and easy to read book on the subject and also one of the best.
    You MUST understand WHAT you are trying to achieve before you can decide HOW you are going to achieve it.

  • Request - Perl script that can parse an ACE config from a VIP

    Has anyone ever written a Perl script that can take the VIP from an ACE config and parse it out into the component parts of the config, ACLs, NATs, Class-map, policy-map, etc. ?
    This seems like something someone must have written already.
    Thanks in advance!

    Any reason you dont want to use XML instead of doing just PERL ?  Its lot easier to do with XML scripts as ACE has a XML interface to query whatever is needed. So that said, you can use a perl to interface ACE via XML. Here's a simple Perl that uses LibCurl:
    #!/usr/bin/perl
    use WWW::Curl::Easy;
    my $numArgs = $#ARGV + 1;
    if ($numArgs<4)
    die("Usage: shusers.pl ip_address username password command\n");
    my $ip = @ARGV[0];
    my $uname = @ARGV[1];
    my $pwd = @ARGV[2];
    my $cmd = @ARGV[3];
    my $curl = new WWW::Curl::Easy;
    my $posturl = "http://$ip/bin/xml_agent/";
    my $xml_cmd = "xml_cmd=<$cmd/>";
    $curl->setopt(CURLOPT_HEADER, 0);
    $curl->setopt(CURLOPT_FRESH_CONNECT, 1);
    $curl->setopt(CURLOPT_URL, $posturl);
    $curl->setopt(CURLOPT_RETURNTRANSFER,1);
    $curl->setopt(CURLOPT_USERPWD,"$uname:$pwd");
    $curl->setopt(CURLOPT_POST,1);
    $curl->setopt(CURLOPT_POSTFIELDS, $xml_cmd);
    $curl->perform;
    my $info = $curl->getinfo(CURLINFO_RESPONSE_CODE);
    print $info;
    Hope this helps.
    Cheers
    V.K

  • How can I get firefox to execute perl scripts from local files

    I have created perl scripts on my local host (file type ".pl").
    In MS Windows I have associated that type to a perl interpreter installed on my local host.
    IE allows me to create links to them and to execute them (after asking for permission).
    How can I get firefox to do the same? It doesn't seem to allow me to add application types, only to change those that are already defined. As a result, in firefox, they just show up as text, instead of being executed.

    First guess is that you did not use an .html extension on the file. The file may well be ''name.html.txt''
    * see http://www.bbc.co.uk/webwise/guides/file-extensions
    *http://windows.microsoft.com/en-gb/windows/show-hide-file-name-extensions#show-hide-file-name-extensions=windows-vista
    Forum Note
    This is normally offtopic for this forum. I say normally because now we cover webmaker questions. I wonder if this is therefore on topic as a webmaker question?
    I have tagged with webmaker-contribution

  • Oracle Driver fails on PERL script

    I am trying to run a PERL script that accesses the Oracle database library. I get the following error:
    install_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
    at (eval 16) line 3
    Compilation failed in require at (eval 16) line 3.
    Perhaps a required shared library or dll isn't installed where expected
    I've looked, and the Oracle.so file is located in the path where it says it cant find it and the libclntsh.so.10.1 is located in the $ORACLE_HOME directory. The $ORACLE_HOME is set to /opt/instantclient_10_2 where the libclntsh.so.10.1 file is located, I also set $LD_LIBRARY_PATH to :/opt/instantclient_10_2 where the libclntsh.so.10.1 file is located. I can't seem to figure out why it won't work. Are there any other environment variables that need to be set? It seems to me that the Oracle driver should be found. Any insights would be greatly appreciated.
    Also, when I print the $ENV{'ORACLE_HOME'} variable in PERL, it doesn't print anything out. Could that be the problem?
    Thanks!
    Edited by: 804130 on Oct 21, 2010 8:59 AM
    Edited by: 804130 on Oct 21, 2010 9:24 AM

    It seems like it must be a problem with the $ORACLE_HOME value. I added the following line at the beginning of the script:
    print $ENV{'ORACLE_HOME'};
    and I get the following error message:
    Use of uninitialized value in print at ./get_closed_TR.pl line 17.
    The environment variable is set in my .bashrc profile and exported. It displays properly when I echo $ORACLE_HOME, but apparently the PERL script can't see it.
    Any ideas? Thanks again!

  • Perl script to delete attributes with space value

    Hi,
    We are using Iplanet Ldap Directory server on hp-UX 11i.
    I have a problem here with the attribute values.There is a space (a blank space) for few attributes across the directory server.
    They seem to be normal when lokked through the ldap console. But when retrieving data through ldapsearch utility they appear as Junk character.
    The only solution for this may be find and delete those attributes and add new one's.
    eg: telephoneNumber :: RASWD== ( when the attribute has one space value,nothing else)
    My issue is iam not able to trace the attributes through perl ldap scripts.
    If anyone can help me out with a script it would be great.There are few thousand employees data appear corrupted.
    Thanks in advance.

    This is how SunOne avoids storing lots of extra spaces (and thus using disk/memory) It base 64 encodes the entries. I believe you can use the -B flag to ldapsearch to display the entry as it really appears not encoded.
    If you really wanted to ideantify them I would write a perl script to locate attribute:: in a db2ldif of the install.
    That would at least tell you which ones have the issue with spaces

  • [solved] Perl script for pacman updates in Conky

    Hi
    I've been using this script in Perl Conky to check on updates. It works well.
    It's not mine - I got it here;
    http://bbs.archlinux.org/viewtopic.php?id=57291
    #!/usr/bin/perl
    ## script by Xyne
    ## http://bbs.archlinux.org/viewtopic.php?id=57291
    use strict;
    use warnings;
    my $n = (`pacman -Qu | wc -l`);
    chomp ($n);
    if ($n == 0)
    print "System up to date"
    elsif($n == 1)
    print "1 new package"
    else
    print "$n new packages (inc. IgnorePkg) "
    I have some packages listed in IgnorePkg in pacman.conf - is there a way to exclude them from the packages counted in $n?
    I thought something like this would help but I don't see how to take only part of a line from IgnorePkg
    http://www.perlfect.com/articles/perlfile.shtml
    Thanks for any help
    EDIT I added a --ignore clause to the pacman query. Seems to have worked. Sorry to waste your time.
    Last edited by Bazzaah (2012-07-04 09:25:46)

    bump...
    Edit: Finally figured it out. My router assigns IP adresses dynamically on each reboot. When my IP adress changed from 192.169.1.2 to 192.168.1.3 the hellaconk script got all confused. Ahh...
    Last edited by Perre (2009-03-12 18:59:40)

  • Perl Script unable to do database call

    Hi,
    Below program is doing nothing, simply hanging. Same program is running fine in other servers. All perl modules are installed.
    bash-3.2$ cat test.pl
    #!/usr/local/git/bin/perl -w
    use strict;
    use DBI;
    my $db = DBI->connect("DBI:Oracle:<DB>",'<Username>','<password>') or die "Could not connect to the database pxrpam". DBI->errstr;
    $db->{AutoCommit} = 0;
    $db->{RaiseError} = 1;
    $db->{ora_check_sql} = 0;
    $db->{RowCacheSize} = 16;
    my $SEL = "select count(*) from test_table";
    my $sth = $db->prepare($SEL);
    print "If you see this, parse phase succeeded without a problem.\n";
    $sth->execute();
    print "If you see this, execute phase succeeded without a problem.\n";
    my $count = $db->selectrow_array ($SEL);
    printf ("Count = %d\n",$count);
    END {
    $db->disconnect if defined($db);
    bash-3.2$
    bash-3.2$
    bash-3.2$ /usr/local/git/bin/perl test.pl
    *^Crl+C*
    bash-3.2$
    I am very new to the perl scripting. I am not having any idea how to debug this. Please help me.
    Thanks in advance!
    Thanks
    Asif

    I don't see anything obviously wrong but you could put a couple more print statements in there, one at the beginning and one after the connect.
    Also it isn't clear to me that this is the best forum. Although the forum title isn't clear I think this is a java forum. Your question is perhaps best address in a general Oracle (database) forum.

  • Perl script issue.

    Hi,
    How do I properly install the Perl modules as listed below for
    OES2SP2/SLES10SP3- SendMail.pm, MIME*?
    Do I use YAST,CPAN.org, 'make install'?
    I just moved a NetWare Perl script over to OES2SP2/SLES10SP3.
    The script fails because of missing SendMail.pm
    Can't locate Mail/SendMail.pm in @INC (@INC contains:
    //usr/lib/perl5/5.8.8/x86_64-linux-thread-multi
    I have reviewed this link and it states:
    http://www.tneoh.zoneit.com/perl/SendMail/FAQ.html#Q5
    5) I got error:
    Can't locate SendMail.pm in @INC (@INC contains:
    /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
    /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
    /usr/lib/perl5/site_perl .) at (eval 6) line 1.
    Ans: Make sure you include the folder where you store those SendMail.pm,
    MIME/Base64.pm and MIME/QuotedPrint.pm files into @INC.
    You can do it with:
    use lib qw(YOUR/FOLDER);

    DrumDude wrote:
    > Simon Flood wrote:
    >> On 10/02/2010 15:30, DrumDude wrote:
    >>
    >>> How do I properly install the Perl modules as listed below for
    >>> OES2SP2/SLES10SP3- SendMail.pm, MIME*?
    >>>
    >>> Do I use YAST,CPAN.org, 'make install'?
    >>>
    >>> I just moved a NetWare Perl script over to OES2SP2/SLES10SP3.
    >>> The script fails because of missing SendMail.pm
    >>> Can't locate Mail/SendMail.pm in @INC (@INC contains:
    >>> //usr/lib/perl5/5.8.8/x86_64-linux-thread-multi
    >>>
    >>> I have reviewed this link and it states:
    >>> http://www.tneoh.zoneit.com/perl/SendMail/FAQ.html#Q5
    >>> 5) I got error:
    >>> Can't locate SendMail.pm in @INC (@INC contains:
    >>> /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
    >>> /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
    >>> /usr/lib/perl5/site_perl .) at (eval 6) line 1.
    >>> Ans: Make sure you include the folder where you store those
    >>> SendMail.pm,
    >>> MIME/Base64.pm and MIME/QuotedPrint.pm files into @INC.
    >>> You can do it with:
    >>> use lib qw(YOUR/FOLDER);
    >>
    >> You may find the following Cool Solutions article that I wrote useful
    >> -
    >> http://www.novell.com/communities/no...x-installation
    >>
    >>
    >> As [email protected] noted you can use 'cpan' which is the equivalent of
    >> the perl command at the beginning of my article.
    >>
    >> HTH.
    >
    > Thanks
    > I was actually plugging my way through just that; but Sendmail hangs?
    > What am I missing? How can I edit the test.pl or Sendmail.pm before
    > installation?
    > Thanks
    >
    > Details
    > >>>>>>
    > Checking if your kit is complete...
    > Looks good
    > Writing Makefile for Mail::Sendmail
    > ************************************************** ********************
    >
    > NOTE
    > ----
    >
    > The test (test.pl) is a real test for this module: it sends an e-mail.
    >
    > You may want to edit test.pl before running it (directly or through
    > make test), so the mail is sent to you. If you also leave my address,
    > the mail goes into a database from which I can get statistics.
    >
    > Read the docs, and have fun...
    >
    > ************************************************** ********************
    > cp Sendmail.pm blib/lib/Mail/Sendmail.pm
    > Manifying blib/man3/Mail::Sendmail.3pm
    > /usr/bin/make -- OK
    > Running make test
    > PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
    > 1..2
    > Test Mail::Sendmail 0.79
    >
    > Trying to send a message to the author (and/or whoever if you edited
    > test.pl)
    >
    > (The test is designed so it can be run by Test::Harness from CPAN.pm.
    > Edit it to send the mail to yourself for more concrete feedback. If you
    > do this, you also need to specify a different mail server, and possibly
    > a different From: address.)
    >
    > Current recipient(s): 'Sendmail Test <[email protected]>'
    >
    > ok 1
    > Server set to: mail.alma.ch
    > Sending...
    >
    Going to download manually edit the files then install and or copy.

  • Perl script to read 3750 stack

    Hi Folks,
              I am aware that much of the discussion is LMS specific here but just wanted to get some inputs with regards to a perl script that i am working with. The basic idea of the script is to get the serial numbers of the individual switches in the stack and report. To just test this I tried it on a single stack switch, i used the oid                          1.3.6.1.2.1.47.1.1.1.1.11.X( X for the index)(entPhysicalSerialNum). But its just returning an empty string.  I did try some of the other fields in the same container and some seem to return results like say the description is returning C37XX switch stack. So, I belive that the script is not broken. Please let me know if the oid is correct or  an aliter to the same oid.
    thanks,
    Prakadeesh

    This OID is correct.  You need to get the value of entPhysicalSerialNum for entities which correspond to chassis elements.  For example, walk the values for entPhysicalClass.  For each entPhysicalIndex which is chassis(3), get the value of entPhysicalSerialNum.  You should have non-empty values.

  • ESSCMD in Perl Script - Error handling

    Does anyone use Perl scripts to run Esscmd commands? I'm trying to incorporate error handling and I can't seem to get Perl to recognize and error that happened when the Esscmd statement runs. A sample would be much appreciated. The fact that I'm not too familiar with Perl doesn't help! <BR>Thanks much.

    Sorted.
    Had to change
    #!/usr/bin/perl
    to
    #!/usr/bin/perl --

  • Capture output of Perl script with jsp:include

    The company's main web site has a CGI script written in Perl that generates a header, and another one that generates a footer. I would like to deploy a JSP that incorporates the header and footer without having to re-implement the header/footer Perl code in Java.
    Can the <jsp:include> tag include the output from these Perl scripts?

    Well, I tried it. The answer seems to be no.
    I created a simple CGI hello-world thingie and tested it, works fine from a browser (I'm doing all this remotely on a friend's Gentoo box so I know it's not just cached in my browser or anything).
    Then I created a simple JSP and used a fully-qualified URL pointing to the executable CGI script. While the JSP compiles and renders (I had some text in the JSP itself too), the part where it's supposed to include the content of the Perl script doesn't even appear.
    I also tried putting the CGI script into my webapp directory and specifying a relative path to the script, and it doesn't seem to get executed either. To confirm that I'm doing everything right, I put together a simple HTML file that has the same output and changed the "page" attribute to point to that file instead. Sure enough, the output appears.
    So the answer to my question appears to be: no, the output of a Perl CGI cannot be included into a JSP with the <jsp:include> tag. But I'm going to double-check on the Tomcat-user mailing list.

Maybe you are looking for