User Profile

Collapse

Profile Sidebar

Collapse
thelevitator
thelevitator
Last Activity: Mar 30 '08, 05:09 AM
Joined: Dec 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • thelevitator
    started a topic Another mysqldump question..

    Another mysqldump question..

    Hi,

    I have used the mysqldump command successfully in the past. I used it to copy the database across remote machines. But i found that the same command when used to copy the database from a remote machine to the localhost, it doesnt work.

    This is the command:
    mysqldump --opt --user=YYYYY --password=XXXXX --host=host@domai n <name of the database> <name of the table> | mysql --user=username --password=<passw ord>...
    See more | Go to post

  • thelevitator
    replied to IO redirection
    Hi,

    I couldnt get the script to run by giving ./chumma.pl, it executes if i'd give perl chumma.pl. I didnt give the specific time. Please ignore that part. I just want the crontask to execute. So as of now, im just testing it for the next minute.

    If i'd try executing using ./chumma.pl it throws the bash error permission denied.

    Does it have anything to do with setting the permissions? Is that why it...
    See more | Go to post

    Leave a comment:


  • thelevitator
    replied to IO redirection
    Cronjob problem

    Ppl,

    please help me fix this problem. Its kind of urgent..I sat on it for more than 2 days. But im totally lost. Its a pretty dumb problem actually.

    Im trying to run a crontask on a remote system. I should execute a shell script at a given time.

    For ex: * * * * * bash /Users/name/sample.sh

    In the script ive included commands to perform database backup. It works...
    See more | Go to post

    Leave a comment:


  • thelevitator
    replied to IO redirection
    in Perl
    Wow..Thanx a ton..It worked!! I was stuck up with this simple problem.

    Actually, i had set the pathname variable to stdin

    my $pathname=<stdi n>;

    The use of shift didnt really strike at first..
    See more | Go to post

    Leave a comment:


  • thelevitator
    replied to IO redirection
    in Perl
    I tried both < and << with and without quotes for the path name. And i tried making these changes in the perl execution command and the shell script.

    I made the change u told.

    #!bin/sh
    filename="/home/name/file"
    /usr/bin/perl /home/name/sample.pl $filename

    I tried executing the perl script as follows

    $perl sample.pl<< 'pathname'
    $perl sample.pl<...
    See more | Go to post

    Leave a comment:


  • thelevitator
    started a topic IO redirection

    IO redirection

    Im trying to execute a perl script from a shell script. I have to pass the path of a file in the command line when i execute the perl script (Automate the perl script execution). How do i feed the path to the perl script through the shell script?

    Details of the perl script execution:

    $perl sample.pl
    Enter the filename:

    Details of the unsuccessful shell script:
    #!bin/sh
    /usr/bin/perl...
    See more | Go to post

  • thelevitator
    started a topic IO redirection
    in Perl

    IO redirection

    Im trying to execute a perl script from a shell script. I have to pass the path of a file in the command line when i execute the perl script (Automate the perl script execution). How do i feed the path to the perl script through the shell script?

    Details of the perl script execution:

    $perl sample.pl
    Enter the filename:

    Details of the unsuccessful shell script:
    #!bin/sh
    /usr/bin/perl...
    See more | Go to post
No activity results to display
Show More
Working...