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, 01: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, 01:50 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,574

Rep: Reputation: 4339Reputation: 4339Reputation: 4339Reputation: 4339Reputation: 4339Reputation: 4339Reputation: 4339Reputation: 4339Reputation: 4339Reputation: 4339Reputation: 4339
I think it is the tool expect.
 
1 members found this post helpful.
Old 06-20-2018, 01:53 PM   #3
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.7.1908
Posts: 4,345

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
~/.bashrc is not referenced at boot, but at login. Is that what you meant?
 
Old 06-20-2018, 02: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, 03:44 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,390
Blog Entries: 9

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

Rep: Reputation: Disabled
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 02: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 11:25 AM
How to send parameters automatically? ranjitcool Linux - Newbie 1 10-05-2014 01:03 PM
Packets automatically send sanjibgupta Linux - Security 1 07-03-2011 06:25 PM
how to load sequence of commands automatically at startup? mac1234mac Linux - Software 3 05-06-2006 05:17 AM
Automatically running commands azebuski Linux - Newbie 3 02-11-2004 10:36 PM

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

All times are GMT -5. The time now is 12:30 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration