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>...
User Profile
Collapse
-
Another mysqldump question..
-
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... -
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...Leave a comment:
-
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..Leave a comment:
-
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<...Leave a comment:
-
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... -
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...
No activity results to display
Show More
Leave a comment: