Recent Updates Toggle Comment Threads | Keyboard Shortcuts

  • Andrew 13:24 on 2011-02-24 Permalink | Reply  

    bob the dog 

    # run a command possibly via batch
    # 1st param: Job Name
    # 2nd param: Depends string
    # remainder: command
    sub do_cmd_batch {
       my($name, $depends, $logdir);
       $name = shift(@_);
       $depends = shift(@_);
    
       $logdir = "$opt{'workdir'}/log";
       &do_cmd('mkdir', '-p', $logdir) if (!-e $logdir);
    
       print STDOUT "[$name:$depends] - @_\n" if $opt{verbose};
       if(!$opt{fake}){
    
          if($opt{'batch'}){
             print '   [B] ';
             &do_cmd('mkdir', '-p', "$logdir/$$");
             &do_cmd('qbatch',
                     '-logfile', "$logdir/$$/$name.log",
                     '-N', $name,
                     '-depends', $depends,
                     '--',
                     @_);
             }
          else{
             &do_cmd(@_);
             }
          }
       }
    
    
    Advertisements
     
  • Andrew 1:02 on 2005-12-13 Permalink | Reply  

    Coop’s response to seeing the franes! Posted by Picasa

     
  • Andrew 1:02 on 2005-12-13 Permalink | Reply  

    Planes… Posted by Picasa

     
  • Andrew 1:01 on 2005-12-13 Permalink | Reply  

    Max wakes up from his nap in the Music section Posted by Picasa

     
  • Andrew 1:01 on 2005-12-13 Permalink | Reply  

    Pop! Pop! Posted by Picasa

     
  • Andrew 1:01 on 2005-12-13 Permalink | Reply  

    Old toys are still good toys Posted by Picasa

     
  • Andrew 1:00 on 2005-12-13 Permalink | Reply  

    “The finger” hasn’t had such an outing since legoland in Billund Posted by Picasa

     
  • Andrew 1:00 on 2005-12-13 Permalink | Reply  

    Coop looking for a button to press Posted by Picasa

     
  • Andrew 0:59 on 2005-12-13 Permalink | Reply  

    Wifey catching forty winks Posted by Picasa

     
  • Andrew 0:58 on 2005-12-13 Permalink | Reply  

    Machines, machines everywhere Posted by Picasa

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel