WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: Command Construction for aterm
« Reply #15 on: December 15, 2010, 01:35:55 AM »
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 15, 2010, 01:39:35 AM »
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 15, 2010, 02:20:22 AM »
...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