AutoHotkey Community

It is currently May 25th, 2012, 7:50 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: June 5th, 2007, 10:01 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2007, 10:29 am 
Escape sequences
That's `%


Report this post
Top
  
Reply with quote  
 Post subject: My "+"-sign disappers
PostPosted: June 5th, 2007, 1:08 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2007, 2:17 pm 
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...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 6th, 2007, 7:02 pm 
johan hoe gaan dit ? :wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2007, 12:46 pm 
Offline

Joined: July 30th, 2004, 11:30 pm
Posts: 74
Location: Deutschland (sorry for my english)
Helpy wrote:


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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2007, 9:54 pm 
Offline
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8647
Location: Salem, MA
Suggestions on documentation improvements

This thread will always get a response from Chris.

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 11th, 2007, 7:52 am 
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


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, Maestr0, MilesAhead and 70 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group