Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 26 Jun 2019, 20:27
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Pause equivalent in linux is read
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
scsijon

Joined: 23 May 2007
Posts: 1429
Location: the australian mallee

PostPosted: Tue 21 May 2019, 23:35    Post subject:  Pause equivalent in linux is read  

Maybe builders and those interested could add a /bin/bash link as /bin/read, it's the equivalent of dos's pause, some nice switces too.

Maybe we should have a stickied topic at the top of the list for things like this to be added, rather than a new one each time?
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15396
Location: Paradox Realm

PostPosted: Wed 22 May 2019, 05:38    Post subject:    

You are right @scsijon Idea

Not only no pause but no paws command ...
I downloaded xcowsay in BionicPup (Puppy8) with apt-get

Using xcowsay command I was able to get a cow appear on screen
and say 'I don’t think you want to do that Dave'
Code:
xcowsay --time=10 you dont want to do that dave


Puppy also has its own version xpupsay ...
http://puppylinux.info/topic/xpupsay64-tahrpup606-repackaged-xcowsay

Now ... what should the paws command do again?
Lobster rambles off into the distance ...

_________________
NEW Dpup Stretch into Buster - coming soon
Newsletter May 019 available from Smokey and contributors

Last edited by Lobster on Wed 22 May 2019, 09:12; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 12235
Location: S.C. USA

PostPosted: Wed 22 May 2019, 07:18    Post subject:  

read is in Bionicpup64 8.0

Code:
root# read -h
bash: read: -h: invalid option
read: usage: read [-ers] [-a array] [-d delim] [-i text] [-n nchars] [-N nchars] [-p prompt] [-t timeout] [-u fd] [name ...]

_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer) http://www.murga-linux.com/puppy/viewtopic.php?t=107601
Back to top
View user's profile Send private message 
rufwoof


Joined: 24 Feb 2014
Posts: 3183

PostPosted: Wed 22 May 2019, 10:42    Post subject:  

Pause with prompt, either waiting 5 seconds or continuing when Enter is pressed
Code:
echo -n "Press Enter or wait 5 seconds : ";read -t 5;echo

_________________
( ͡° ͜ʖ ͡°) :wq
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 125

PostPosted: Thu 23 May 2019, 01:07    Post subject:  

Cutting edge? Is this a joke?
Back to top
View user's profile Send private message 
ETP


Joined: 19 Oct 2010
Posts: 1158
Location: UK

PostPosted: Thu 23 May 2019, 11:43    Post subject:  

phat7 wrote:
Cutting edge? Is this a joke?

Perhaps cutting edge is not the correct place, but I for one have often missed the Dos pause command.
Whilst aware of the read command, I did not realise that it could be used in the manner described by @ rufwoof.

Lobster wrote:
Quote:
Not only no pause but no paws command


Your wish is my command so here is @rufwoof's code slightly modified and added to my bash aliases as a paws command

Code:
alias tree="tree -a"
alias myip="curl http://ipecho.net/plain; echo"
alias c="clear"
alias ll="ls -lhA"
alias grep="grep -i --color=auto"
alias df="df -h"
alias free="free -m"
alias paws="echo -n 'Press Enter or wait 90 seconds : ';read -t 90;echo"

_________________
Regards ETP

Kennels
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15396
Location: Paradox Realm

PostPosted: Thu 23 May 2019, 22:32    Post subject:  

Thanks @ETP Cool

Great work!

I was thinking of extending it further ...

Some of these may not even be possible, that should not be an obstacle.

PAWS from command line or GUI

- Pause internet connection, this is from my GROWL program
Code:
ifconfig eth0 down

but Puppy runs daemons that reconnect
and wifi is another issue as that is for ethernet.
Probably the safest way is unplug the ethernet cable
(or have a switch on it?)
Also motherboards without wifi are available - wifi in terms of security should be renamed 'iffy'

- Pause computer usage with random suggestion using xcowsay
or xpupsay.
This will stop Linux rabies and other mental health problems for fanatical developers ...
Suggestions might be: 'Tea break?', 'Dog stretch?' (from yoga),
'Leave the Matrix, go for a real world walk!' and so on

- Quantum pause: Entering a state of mindfulness
(as used by Buddhists) without leaving. Rolling Eyes

- Hibernate Pause: A form of ghosting, where you are still actively on your computer, whilst going elsewhere.
This may require Iron Mans Jarvis or similar AI Very Happy

Cutting Edge Sanity is now resumed ...

Puppy Linux
Thinking Outside the Boxer

_________________
NEW Dpup Stretch into Buster - coming soon
Newsletter May 019 available from Smokey and contributors
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0313s ][ Queries: 11 (0.0028s) ][ GZIP on ]