|
Home > Archive > Unix Shell > November 2007 > leave & xargs
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| franzi 2007-11-26, 1:37 am |
| So if i had quite understood,if i want to pass through the command
leave anothere command like shutdown -h 23:20,i need to do
$ leave 2320 |xargs shutdown -h 23:20 is that correct?
| |
| Bill Marcum 2007-11-26, 7:36 am |
| On 2007-11-26, franzi <hazzino@gmail.com> wrote:
>
>
> So if i had quite understood,if i want to pass through the command
> leave anothere command like shutdown -h 23:20,i need to do
> $ leave 2320 |xargs shutdown -h 23:20 is that correct?
What does the leave command do? Shutdown doesn't need more arguments
unless you want to give a reason for the shutdown.
| |
| franzi 2007-11-26, 7:36 am |
| On 26 Nov, 10:44, Bill Marcum <marcumb...@bellsouth.net> wrote:
> On 2007-11-26, franzi <hazz...@gmail.com> wrote:
>
>
>
>
> What does the leave command do? Shutdown doesn't need more arguments
> unless you want to give a reason for the shutdown.
it reminds you that you have to leave
| |
| Joachim Schmitz 2007-11-26, 7:36 am |
| "franzi" <hazzino@gmail.com> schrieb im Newsbeitrag
news:5610ee57-9ef9-483a-9257-1940b234e3e9@x69g2000hsx.googlegroups.com...
> On 26 Nov, 10:44, Bill Marcum <marcumb...@bellsouth.net> wrote:
>
> it reminds you that you have to leave
xargs is meant to split command lines into chunks that don't exceed the max
length
here it doen't make sense, as calling shutdown more than once doesn't buy
much.
You could use:
shutdown -h 23:20 $(leave 2320)
and hope leave's output isn't too long to fit a single command line
Bye, Jojo
| |
| Maxwell Lol 2007-11-27, 7:33 am |
| franzi <hazzino@gmail.com> writes:
> it reminds you that you have to leave
shutdown warns users to log off. And if you ignore this warning, it
shuts down anyway.
You don't need "leave."
You can run "leave" in your non-root window, and run "shutdown" in a
root window if you wish. Try it and see if you like it.
| |
| franzi 2007-11-28, 1:42 am |
| On 27 Nov, 13:16, Maxwell Lol <nos...@com.invalid> wrote:
> franzi <hazz...@gmail.com> writes:
>
> shutdown warns users to log off. And if you ignore this warning, it
> shuts down anyway.
>
> You don't need "leave."
>
> You can run "leave" in your non-root window, and run "shutdown" in a
> root window if you wish. Try it and see if you like it.
thanks to all
|
|
|
|
|