LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2018, 12:08 PM   #1
goofylife
LQ Newbie
 
Registered: Jun 2018
Location: UK, London
Posts: 6

Rep: Reputation: Disabled
Send commands automatically at startup


Hi,

I want RainbowStream(CLI Twitter client) to launch at boot, and when launched, run the "home 10"- command wich brings forth the 10 latest tweets in the timeline.

I edited ~/.bashrc and added the following at the end:

rainbowstream
home 10

This launched rainbowstream, but "home 10" was first launched when rainbowstream was closed.

Is there a way to run commands within an application automaically?
 
Old 06-20-2018, 12:50 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,790

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
I think it is the tool expect.
 
1 members found this post helpful.
Old 06-20-2018, 12:53 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,723

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
~/.bashrc is not referenced at boot, but at login. Is that what you meant?
 
Old 06-20-2018, 01:01 PM   #4
goofylife
LQ Newbie
 
Registered: Jun 2018
Location: UK, London
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
~/.bashrc is not referenced at boot, but at login. Is that what you meant?
Its on a Raspberry Pi, and its set up to automatically log in as the pi -user, so yes, it seems to work fine for the launching of rainbowstream at least.
 
Old 06-20-2018, 02:44 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
maybe rainbowstream has command line options?
have you tried 'raibowstream --help' or some such?
 
Old 06-21-2018, 01:15 AM   #6
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Rep: Reputation: 58
did you try this at command prompt?

# rainbowstream & sleep 2 ; home 10 &

what works at command prompt if that does not?

Last edited by X-LFS-2010; 06-21-2018 at 01:17 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Send files automatically to an other pc MikeJay General 23 01-24-2015 10:25 AM
How to send parameters automatically? ranjitcool Linux - Newbie 1 10-05-2014 12:03 PM
Packets automatically send sanjibgupta Linux - Security 1 07-03-2011 05:25 PM
how to load sequence of commands automatically at startup? mac1234mac Linux - Software 3 05-06-2006 04:17 AM
Automatically running commands azebuski Linux - Newbie 3 02-11-2004 09:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration