search for: raw_input

Displaying 9 results from an estimated 9 matches for "raw_input".

Did you mean: jap_input
2009 Sep 14
2
[PATCH node-image] add livecd-iso-to-iscsi script to support iscsi root booting setup
...options.targetname is None: + fail("ERROR: iscsi targetname must be defined") + +if len(options.disk_label.strip()) > 15: + fail("ERROR: disk label must be 14 characters or less") + +try: + file = os.mkdir("tftpboot") +except OSError, e: + tftp_remove = raw_input("tftpboot directory exists, overwrite? (y/N)? ") + if tftp_remove.lower() == "y": + shutil.rmtree("tftpboot") + os.mkdir("tftpboot") + else: + print "Aborting" + sys.exit(1) + +if options.disk is None: + print &q...
2012 May 30
3
raw input prompt
Hello, I was wondering if there is a way to make a prompt for the user (exactly like raw_input() in Python), the response to which can then be used as an object. Thanks, Abir -- View this message in context: http://r.789695.n4.nabble.com/raw-input-prompt-tp4631852.html Sent from the R help mailing list archive at Nabble.com.
2014 Feb 19
0
dispatch on "c" method when passing named arguments
...function(x, ..., recursive=FALSE) { if (missing(x)) { objects <- list(...) x <- objects[[1L]] } else { objects <- list(x, ...) } new(class(x), aa=unlist(lapply(objects, slot, "aa"), use.names=FALSE)) } ) raw_input <- list(chr1=1:3, chr2=11:12) list_of_A_objects <- lapply(raw_input, function(aa) new("A", aa=aa)) Then: > do.call("c", list_of_A_objects) An object of class "A" Slot "aa": [1] 1 2 3 11 12 ==> all is fine. But: setClass(&...
2013 Jul 03
2
Potential memory leak when assigning MSetItem values
...39;data': i.document.get_data(), 'id': i.docid, }) # Make sure I'm not crazy del num_docs, db, i, e, m, data gc.collect() def main(): # print the PID to monitor print 'PID to monitor: {}'.format(os.getpid()) db = make_db('/tmp/test.db') raw_input("database is done, ready?") run_query(db, 100000) raw_input('done?') if __name__ == '__main__': main()
2010 Apr 01
7
Sending mail from CLI to another SMTP host
Hi all, Is it possible to send mail from CLI (bash, python) without any LOCAL SMTP installed, using SMTP on another machine. Care to give a glimpse of the code? Thank you.
2008 Feb 19
1
DLMFS on OracleVM 2.1 (OEL5.0 based)
...rt os import time dir="/dlm/xen" mach="TermServ" if ( not os.path.isdir(dir)): os.mkdir(dir) try: # fd=os.open(dir + "/" + mach, os.O_RDWR|os.O_CREAT) fd=os.open(dir + "/" + mach, os.O_RDWR|os.O_CREAT|os.O_NONBLOCK) sleeptime=raw_input("How long to sleep ? ") print "Sleeping " + sleeptime + " seconds" time.sleep(float(sleeptime)) os.close(fd) except IOError, e: print "ERROR: could not open file\n" raise Exception, "%s [%d]" % (e.strerror, e....
2010 May 17
1
how authentication works?
Manao ahoana, Hello, Bonjour, I've read: http://wiki.dovecot.org/Authentication/PasswordSchemes I have a users database with clear plain passwords. Dovecot authenticates users without problems against it. Now, it's time to move to CRYPT scheme. Before that, I would like to know how things happen. He have: - the user, (entering his password in the MUA) - the user's MUA (Thunderbird,
2009 Oct 14
4
Refactor ovirt-node-image code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora. Removed ks files, now in ovirt-node-recipe, which is subpackage of ovirt-node. Removed tools, these are now in ovirt-node-recipe which is subpackage of ovirt-node.
2009 Oct 14
8
Refactor ovirt-node code base for inclusion in Fedora
Main reason for refactor is no ovirt-node-image binary image allowed in fedora. Moves tools and kickstart files form ovirt-node-image to subpackage ovirt-node-recipe. Removes old sub packages form ovirt-node, stateless, logos, selinux. Modifies init scripts to meet Fedora packaging guidelines: added status, reload, and lockfile, rhbz: 514221 Added License file.