Double quotas problem
From: Antimo (antimogc_at_hotmail.com)
Date: 06/15/04
- Previous message: Programmer Dude: "Re: Long term nuclear waste disposal (was: The Year 2038 Problem)"
- Next in thread: Alexey G. Khramkov: "Re: Double quotas problem"
- Reply: Alexey G. Khramkov: "Re: Double quotas problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Jun 2004 09:20:12 -0700
I all,
I'm writing a script on a solaris machine (sh shell), and I need to
put the following command containing double quotas:
xmodmap -e "keysym KP_1 = 1"
as one of the commands of the remote shell (to map the numeric pad on
the remote machine).
It should be something in this way:
rsh remote_hostname "ls; pwd; xmodmap -e "keysym KP_1 = 1"; ls; pwd"
(the ls and pwd are written to give example of a sequence of
commands).
The problem is that the previous line doesn't work, because I have to
insert the double quotas inside the double quotas of the rsh. In
addition I can't run a script on the remote machine containing the
xmodmap command.
Anyone knows how to write it in the correct way? I have also tested
the following lines (without success):
rsh remote_hostname "ls; pwd; xmodmap -e \"keysym KP_1 = 1\"; ls; pwd"
rsh remote_hostname "(ls; pwd; (xmodmap -e \"keysym KP_1 = 1\"); ls;
pwd)"
Thank you for the help,
Paolo
- Previous message: Programmer Dude: "Re: Long term nuclear waste disposal (was: The Year 2038 Problem)"
- Next in thread: Alexey G. Khramkov: "Re: Double quotas problem"
- Reply: Alexey G. Khramkov: "Re: Double quotas problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|