| View previous topic :: View next topic |
| Author |
Message |
johan Guest
|
Posted: Tue Jun 05, 2007 10:01 am Post subject: "variable name missing its percent sign" |
|
|
Hello!
I'm trying to run a UNIX command i a Putty session. My goal is to add date to a filename:
send, mv FILENAME /home/user/workspace/project/`/usr/bin/date -u +"%y%m%d" | /usr/bin/sed 's/ //g'`_FILENAME{enter}
When I run my AutoHothey script I get an Error:
This parameter contains a variable name missing its percent sign. The program will exit.
I've tried solutions like .."%%y%%m%%d... but it didnt work.
Pls help.
//Johan |
|
| Back to top |
|
 |
Helpy Guest
|
|
| Back to top |
|
 |
johan Guest
|
Posted: Tue Jun 05, 2007 1:08 pm Post subject: My "+"-sign disappers |
|
|
Thanks!
Now I got another problem. My "+"-sign disappers running the script:
send, mv FILENAME /home/user/workspace/project/`/usr/bin/date +"%y%m%d" | /usr/bin/sed 's/ //g'`_FILENAME{enter}
`+ dont fix it.
Du You have any solution on this problem?
Brgds // Johan |
|
| Back to top |
|
 |
Helpy Guest
|
Posted: Tue Jun 05, 2007 2:17 pm Post subject: |
|
|
Use SendRaw when you have no special sequences like +{F4} (that's Shift+F4} to send.
Otherwise, escape sequences in Send are different (I know, I know...): {+}, but using SendRaw allows you not to wonder if this or that symbol is special... |
|
| Back to top |
|
 |
koosie Guest
|
Posted: Wed Jun 06, 2007 7:02 pm Post subject: |
|
|
johan hoe gaan dit ?  |
|
| Back to top |
|
 |
Stefan
Joined: 30 Jul 2004 Posts: 72 Location: Deutschland (sorry for my english)
|
Posted: Sat Jun 09, 2007 12:46 pm Post subject: |
|
|
I have missed this info in the help about "Send"
because i tried to send an %
Maybe there should be an quick info about such special chars
and an link to "EscapeChar" with the "Related" section?
Related
SendMode, SetKeyDelay, SetStoreCapslockMode, EscapeChar, ControlSend, BlockInput, Hotstrings, WinActivate
--
BTW: ` is Alt+96
The german key board have an `´-key.
You can get this `-char by holding the Shift-key and pressing this `´-key |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6772 Location: Pacific Northwest, US
|
|
| Back to top |
|
 |
Johan Guest
|
Posted: Mon Jun 11, 2007 7:52 am Post subject: |
|
|
Hello!
Sorry for the late answer. The Sun in Sweden forced me home for a long weekend. My script works, and thats thanks to You.
This is really a happy Monday.
Brgds // Johan |
|
| Back to top |
|
 |
|