Author Topic: Advice before starting - please  (Read 9054 times)

0 Members and 1 Guest are viewing this topic.

Offline Mark

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
Advice before starting - please
« on: July 08, 2017, 10:17:59 am »
Hello, I must start by saying I am totally new to Linux...

My question is.

I have some cron jobs which automate 2 different commands at 2 different times that run fine at the moment.

When the command I am issuing has completed in the script there is a return value, which I would like to extract and apply math to use in the rest of my script, maybe issue another command based on the logic.

Would I be right in using Expect ?

after the command the reply would be "some text : value"      the value will be numbers.

the reason I am asking is I don't want to install expect and it not be the right application for it and possibly mess up my small Linux install that's working.

Many thanks


SimplePortal 2.3.3 © 2008-2010, SimplePortal