leave & xargs

leave & xargs

am 26.11.2007 08:27:07 von franzi

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?

Re: leave & xargs

am 26.11.2007 10:44:02 von Bill Marcum

On 2007-11-26, franzi 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.

Re: leave & xargs

am 26.11.2007 11:42:55 von franzi

On 26 Nov, 10:44, Bill Marcum wrote:
> On 2007-11-26, franzi 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.

it reminds you that you have to leave

Re: leave & xargs

am 26.11.2007 11:54:47 von Joachim Schmitz

"franzi" schrieb im Newsbeitrag
news:5610ee57-9ef9-483a-9257-1940b234e3e9@x69g2000hsx.google groups.com...
> On 26 Nov, 10:44, Bill Marcum wrote:
>> On 2007-11-26, franzi 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.
>
> 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

Re: leave & xargs

am 27.11.2007 13:16:27 von Maxwell Lol

franzi 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.

Re: leave & xargs

am 28.11.2007 08:04:38 von franzi

On 27 Nov, 13:16, Maxwell Lol wrote:
> franzi 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.

thanks to all