WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Command Construction for aterm  (Read 6033 times)

Offline ^thehatsrule^

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
Re: Command Construction for aterm
« Reply #15 on: December 14, 2010, 10:35:55 PM »
Probably would need something else for the quotes, i.e.
Quote
aterm -e sh -c "cat file && echo -e '\n\n' && exec sh"
or like the earlier post with
Quote
aterm -e sh -c "cat file;echo;echo; exec sh"

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Command Construction for aterm
« Reply #16 on: December 14, 2010, 10:39:35 PM »
aterm -e sh -c "cat file && echo -e "\n\n" && exec sh"
Thanks for the suggestion.  Using double quotes around the newline characters produced nn.  Replacing the double quotes with single quotes gave the desired result.

Code: [Select]
aterm -e sh -c "cat file && echo -e '\n\n' && exec sh"Works as wanted.

This post was made at the same time as a similar reply from ^thehatsrule^

Offline SamK

  • Hero Member
  • *****
  • Posts: 713
Re: Command Construction for aterm
« Reply #17 on: December 14, 2010, 11:20:22 PM »
...or like the earlier post with
Quote
aterm -e sh -c "cat file;echo;echo; exec sh"
This works as wanted and have adopted it as I find it easier to read.
http://forum.tinycorelinux.net/index.php?topic=8015.msg43483#msg43483