![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Escape space in for loop | Tuxidow | Shell Programming and Scripting | 3 | 3 Weeks Ago 09:08 AM |
| The command for Unassigned Space | shahid khan | UNIX for Dummies Questions & Answers | 1 | 07-01-2009 04:41 AM |
| space in output from awk command | lalelle | Shell Programming and Scripting | 7 | 08-14-2007 08:51 AM |
| SED command to change ./ to a space | bobk544 | Shell Programming and Scripting | 11 | 04-05-2007 09:46 AM |
| Command to list used space in VG? | Stephan | UNIX for Dummies Questions & Answers | 2 | 11-03-2005 03:34 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
The following statement does work. But the second command does not work as expected.
Code:
ssh root@123.123.123.123 \\"mysqldump -h localhost -u root -pPassWord dbName -d | gzip -cf\\" | gunzip -c > database1.sql ssh root@123.123.123.123 \\"mysqlbinlog /var/log/mysql/mysql-bin.* --start-datetime=\\"`date -d"1 day ago" +'%Y-%m-%d 00:00:00'`\\" --stop-datetime=\\"`date +'%Y-%m-%d 00:00:00'`\\" > tos1.txt _____ update: The problem was solved by escaping the space in the date command. Last edited by shantanuo; 3 Weeks Ago at 02:52 AM.. Reason: resolved |
| Bookmarks |
| Tags |
| ssh |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|