Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function forever #9

Open
Tarrasch opened this issue Apr 8, 2013 · 3 comments
Open

Add function forever #9

Tarrasch opened this issue Apr 8, 2013 · 3 comments

Comments

@Tarrasch
Copy link
Owner

Tarrasch commented Apr 8, 2013

For instance

$ forever `echo hi`
> hi
> hi
> hi
> hi
...
@NightMachinery
Copy link

NightMachinery commented Oct 18, 2018

loop () {
	while true
	do
		eval "${@:2}"
		sleep ${1:-1}
	done
}

@Tarrasch
Copy link
Owner Author

Please send a PR. Although we shouldn't do any sleeping I think.

@NightMachinery
Copy link

NightMachinery commented Oct 22, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants