User Profile

Collapse

Profile Sidebar

Collapse
shrek123
shrek123
Last Activity: Dec 17 '07, 01:10 PM
Joined: Aug 23 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to read last to lines of a file present at remote server.

    How to read last to lines of a file present at remote server.
    See more | Go to post

  • [QUOTE=numberwhu n]Well, sometimes you can never tell what Micro$oft puts in their software. Out of curiosity, did you search and see if you could find the mentioned file, "VCVARS32.B AT"? If it is there, run it, then try re-running the installation./QUOTE]

    I didn't find "VCVARS32.B AT" anywhere on my machine. (strange)



    I have Active state perl installed on my machine.I tried ppm but...
    See more | Go to post

    Leave a comment:


  • shrek123
    started a topic Not able to install Bundle::DBI on windows machine
    in Perl

    Not able to install Bundle::DBI on windows machine

    Hi,
    I am trying to install DBI bundle on my windows machine.
    It is giving me following error while i am running Makefile.pl.

    ############### #####Error##### ############### ###############

    *** You are using a perl configured with threading enabled.
    *** You should be aware that using multiple threads is
    *** not recommended for production environments.

    *** Note:
    The optional...
    See more | Go to post

  • shrek123
    replied to Login to the MAC OS using perl script.
    in Perl
    I have done it through Socket programming. And used different ports to differentiate between bifferent Users logged in....
    See more | Go to post

    Leave a comment:


  • shrek123
    replied to Perl on MAC OS X
    in Perl
    have found a workaround of the problem.
    I am storing the output of the executed command in a varibale. Backtick (`) allow this to do. Let say, if I want to execute pwd command on terminal following would be my code

    Code:
    $output = `pwd`;
    print $output; # this will pring the current working directory.
    I have not tried File::Util

    Shrek...
    See more | Go to post

    Leave a comment:


  • How to find that some perl program is already running.

    Hi,

    I have to call a perl program(if it is not running) from a perl program
    How can I check if my program is already running or not.

    I somehow, didn't like the idea of using some file as tag.

    My platform could be a MAC OS or windows.

    Please throw some light on how can I do it.

    Thanks and Regards,
    Shrek
    See more | Go to post

  • How to fetch the exit code of the executed perl script?

    Hi,

    My perl script1 calls perls script2.
    1. How can I return some value from perl script2?
    2. How can I get the value returned by perl script2 in perl script1?

    For Second operation is it $? that gives the exit code????

    Thanks
    See more | Go to post

  • Problem in fetching the return value of the executed program.

    Hi,
    I want to execute some script (May or May not be perl script) from a perl script and print the output of that executed script.
    My Operating system are Windows and Mac OS(Unix).
    I was trying the following code without success:

    Code:
    $Response = system("start test.wbt");
    print $Response;
    By the above code I am able to execute test.wbt but program doesnt wait for...
    See more | Go to post

  • shrek123
    replied to How to declare global variables.
    in Perl
    Still I am not confident enough to code this. Here is what I wanna do:

    I have a perl file "lib.pl" and it contain:

    Code:
    use strict;
    our $somevariable = "It is Constant";
    I have another perl file "test.pl"
    Code:
    use strict;
    my $x = $somevariable ; 
    print $x; # It should print It is Constant.
    ...
    See more | Go to post

    Leave a comment:


  • shrek123
    replied to How to declare global variables.
    in Perl
    I am not clear, how can I use some constant defined in some package in more then one perl script.

    Also I am not clear how can I create a package with constant declaration.

    Could you please expain it via some example.

    Thanks...
    See more | Go to post

    Leave a comment:


  • Thanks, its working....
    See more | Go to post

    Leave a comment:


  • How can I pass output of some perl subroutine to a subroutine?

    How can I pass output of some perl subroutine to a subroutine?

    I have Subroutine1 and wanna pass the return value of this subroutine as an argument to another subroutine.
    I tried this;

    &SubroutineA("t est",&Subroutin eB)
    but it doest work.

    Thanks in advance.
    See more | Go to post

  • shrek123
    started a topic How to declare global variables.
    in Perl

    How to declare global variables.

    hi,

    I am designing some code to communicate beetween two machines.
    I want to declare variable (constants) into some seperate perl file and use them into all the perl scripts. I am confused how can I do this.
    Do I need to create .pm file ? if yes please explain how can I create .pm file from .pl file.

    Thanks in advance.
    See more | Go to post

  • shrek123
    started a topic Execute script on remote computer.
    in Perl

    Execute script on remote computer.

    Hi,

    I am in a big mess.
    I have to execute command on remote machine using perl script.
    I have used INET Socket module to do this operation.
    Following is the code snipet.
    Code:
    use IO::Socket;
    
    $socket = IO::Socket::INET->new (PeerAddr => "x:x:x:x",PeerPort => "ssh(zzz)",Proto => "tcp");
    if ($socket) 
    	{	print "f";
    ...
    See more | Go to post

  • shrek123
    started a topic Perl on MAC OS X
    in Perl

    Perl on MAC OS X

    Hi,

    Can I see logs of the commands fired on terminal?
    I have executed some perl script through MAC terminal. How can I see its output. Is their any log for MAC OS terminal.
    See more | Go to post

  • shrek123
    started a topic Login to the MAC OS using perl script.
    in Perl

    Login to the MAC OS using perl script.

    My MAC OS has 2 users logged in.
    I am trying to execute some commands on User1. Any idea about how it is possible ??
    I am new to MAC OS, Any indication would be a great help.

    Thanks,
    Shrek
    See more | Go to post

  • Is there any other way to kill and restart processes on remote machine??

    Regards,
    Shrek123
    See more | Go to post

    Leave a comment:


  • How to kill a process on remote machine on some other domain?

    I want to kill some process on remote machine which is on some other domain.
    I am using Win32::OLE GetObject to do that. But I am getting following error


    Error1: When my remote machine is on same domain as of local machine

    Win32::OLE(0.17 01) error 0x80070005: "Access is denied" after character 0 in
    "WinMgmts:{impe rsonationLevel= impersonate,(se curity)}!\\10.1 0.230.40"
    ...
    See more | Go to post

  • Hey KevinADC,

    its working for me.....
    Can you please let me know, does the above code hamper the performance of the complete script??...
    See more | Go to post

    Leave a comment:


  • Hey I got the way........
    Here is the code:

    [CODE=perl]
    $remote= '\\\remotehost\ remotedir\remot efile.txt';
    open(fp, ">$remote") or die ("could not open the file");

    print fp "PAUSE";

    close(fp);

    [/CODE]
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...