# -*-sh-*-
-# $Id$
-# $URL$
# this file defines a few convenience bash shorthands for managing myplc nodes
# it is installed in /usr/share/myplc/aliases
# you might wish to use it in your own bash startup files (.profile/.bashrc)
#!/usr/bin/python
###
-### $Id$
-###
### utility script for cleaning empty directories
### useful to clean up /var/tmp/bootmedium
###
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id$
-#
from plc_config import PLCConfiguration
import os, sys
class mtail:
- subversion_id = "$Id$"
-
default_time_format = "%H:%M:%S"
def __init__ (self, args ):
usage = """usage: %prog [options] file-or-dir ...
example:
# %prog -e '*access*' /var/log"""
- parser=OptionParser(usage=usage,version=self.subversion_id)
+ parser=OptionParser(usage=usage)
# tail_period
parser.add_option("-p","--period", type="int", dest="tail_period", default=1,
help="Files check period in seconds")
self.args.append("/var/log/httpd/sfa_access_log")
if self.options.verbose:
- print 'Version:',self.subversion_id
print 'Options:',self.options
print 'Arguments:',self.args
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id$
-#
import sys
import os
#!/usr/bin/env plcsh
#
-# $Id$
-
# this script generates a kml file, located under the default location below
# you should crontab this job from your myplc image
# you can then use the googlemap.js javascript for creating your applet
#!/usr/bin/env plcsh
#
-# $Id$
-#
# searches and displays any local orphan account (not attached to a site)
# remote accounts with identical emails are displayed as well
#!/usr/bin/env plcsh
-# $Id$
import sys,time,os,os.path
Mark Huang <mlhuang@cs.princeton.edu>
Copyright (C) 2006 The Trustees of Princeton University
-$Id$
-$URL$
-->
<!DOCTYPE configuration PUBLIC "-//PlanetLab Central//DTD PLC configuration//EN" "plc_config.dtd">
#!/bin/bash
-# $Id$
-# $URL$
#
# priority: 950
#
# -*-Shell-script-*-
-# $Id$
-# $URL$
-#
# Common functions for PLC startup/shutdown scripts
#
# Mark Huang <mlhuang@cs.princeton.edu>
#!/bin/bash
-# $Id$
-# $URL$
#
# priority: 400
#
#!/bin/bash
-# $Id$
-# $URL$
#
# priority: 600
#
#!/bin/bash
-# $Id$
-# $URL$
#
# priority: 200
#
#!/bin/bash
-# $Id$
-# $URL$
#
# priority: 100
#
#!/bin/bash
-# $Id$
-# $URL$
#
# priority: 500
#
Mark Huang <mlhuang@cs.princeton.edu>
Copyright (C) 2006 The Trustees of Princeton University
-$Id$
-->
<!ELEMENT configuration (variables, comps)>
####################
# GLOBAL VARIABLES
#
-release_id = "$Id$"
-release_rev = "$Revision$"
-release_url = "$URL$"
-
g_configuration=None
usual_variables=None
config_dir=None
####################
def optParserSetup(configuration):
- parser = OptionParser(usage=usage(), version="%prog " + release_rev + release_url )
+ parser = OptionParser(usage=usage())
parser.set_defaults(config_dir=configuration['config_dir'],
service=configuration['service'],
usual_variables=configuration['usual_variables'])
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: gen-sites-xml.py,v 1.8 2007/09/14 20:08:28 tmack Exp $
-#
import os, sys
import getopt
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2005 The Trustees of Princeton University
#
-# $Id: gen-static-content.py,v 1.35.2.1 2007/02/07 03:27:50 mlhuang Exp $
-#
import os, sys, shutil
import time
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2005 The Trustees of Princeton University
#
-# $Id$
-#
import os, sys
import plcapilib
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2005 The Trustees of Princeton University
#
-# $Id$
-#
import os
import sys