Re: queue feeder (cont)

2001-07-30 Thread Alexander V. Lukyanov

On Fri, Jul 27, 2001 at 12:54:57AM +0200, Arkadiusz Miskiewicz wrote:
 Is there job pausing/continueing? For example while downloading some
 huge file I have too small amount of free space and I need to copy
 something to other server (to make more free space)... Pausing will be
 great here. Of course I can stop transfer and reget it later but this
 requires logging to server, finding remote directory etc again. Pausing
 will be just simpler and nicer :-)

Not yet. It is in TODO.

-- 
   Alexander.  | http://www.yars.free.net/~lav/  



Re: queue feeder (cont)

2001-07-27 Thread Arkadiusz Miskiewicz

"Glenn F. Maynard" [EMAIL PROTECTED] writes:

 Jobs, deleting, moving and inserting at an offset are implemented.  I couldn't
 break them, but they still need more bashing on.
Is there job pausing/continueing? For example while downloading some
huge file I have too small amount of free space and I need to copy
something to other server (to make more free space)... Pausing will be
great here. Of course I can stop transfer and reget it later but this
requires logging to server, finding remote directory etc again. Pausing
will be just simpler and nicer :-)

 Glenn Maynard

-- 
 Arkadiusz Mikiewicz, AM2-6BONE, 1024/3DB19BBD
 IPv6 ready PLD Linux at http://www.pld.org.pl/
My jsme Borg. Odpor je marn, budete asimilovni



Re: queue feeder (cont)

2001-07-26 Thread Alexander V. Lukyanov

On Thu, Jul 26, 2001 at 03:19:48AM -0400, Glenn F. Maynard wrote:
 Jobs, deleting, moving and inserting at an offset are implemented.  I couldn't
 break them, but they still need more bashing on.

Patch applied. Thanks.

 One problem with wildcard matching: fnmatch matches substrings; ie foo*bar
 matches abc foo bar. There seems to be no way to make it require a full

No, fnmatch matches the whole string. How else it would be used in globbing?

 Implementation question:
 void CmdExec::FeedArgV(const ArgV *args,int start)
 {
   char *cmd;

   if(start+1==args-count())
   cmd=args-Combine(start);
   else
   cmd=args-CombineQuoted(start);

   FeedCmd(cmd);
   FeedCmd(\n);
   xfree(cmd);
 }

 Why no quoting for one word?  It's a negligible speed difference; why
 the extra code?  The only difference I see is

It is for whole commands being in a single argument:

   queue cat  /dev/null

if(waiting_num==1)
{
   printf(_(\tWaiting for job [%d] to terminate\n),waiting[0]-jobno);
   return;
}
else if(waiting_num1)
{
   printf(_(\tWaiting for termination of jobs: ));
   for(int i=0; iwaiting_num; i++)
   {
  printf([%d],waiting[i]-jobno);
  printf(%c,i+1waiting_num?' ':'\n');
   }
}

 Is the second case intended to fall through and the first not?

It is a bug. I have fixed it, thanks!

--
   Alexander.



Re: queue feeder (cont)

2001-07-26 Thread Alexander V. Lukyanov

On Thu, Jul 26, 2001 at 03:19:48AM -0400, Glenn F. Maynard wrote:
 Jobs, deleting, moving and inserting at an offset are implemented.  I couldn't
 break them, but they still need more bashing on.

BTW, please make sure the help message does not exceed 80 characters in width.

-- 
   Alexander.  | http://www.yars.free.net/~lav/