This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ftplib | |
def command(): | |
cmd = raw_input(login +"@" + host +">") | |
#upload | |
if cmd=="upload": | |
filename = raw_input("Insert file name:") | |
#Upload a binary file from your disk | |
ftp.storbinary('STOR '+filename, open(filename,'rb')) | |
print "file upload success!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#Leggo un file | |
f = open("/home/nemolog/Scrivania/test2","r"); | |
#ciclo per ogni line... | |
for line in f: | |
# ...printa la linea | |
print line | |
# modifico la linea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "Avvio di Python Program..."; | |
#lettura del file | |
file_object = open('/home/nemolog/LotusInstall.log'); | |
print "File sorgente: ", file_object | |
all_the_text = file_object.read( ) | |
file_object.close( ) | |
#print all_the_text | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
//nome del comando | |
name: "CodeSearch", | |
homepage: "http://bytezone.plumfake.net/", | |
author: { name: "Mauro Rubin", email: "mauro.rubin@plumfake.net"}, | |
help: "Se ne volete saperne di più andate su http://bytezone.plumfake.net/" | |
//definisco il tipo di parametro passato | |
takes: {"qualcosa da ricercare": noun_arb_text}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
//nome del comando | |
name: "OilprojectSearch", | |
//definisco il tipo di parametro passato | |
takes: {"qualcosa da ricercare": noun_arb_text}, | |
//descrizione sotto... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
//nome del comando | |
name: "TwineSearch", | |
homepage: "http://bytezone.plumfake.net/", | |
author: { name: "Mauro Rubin", email: "mauro.rubin@plumfake.net"}, | |
help: "Se ne volete saperne di più andate su http://bytezone.plumfake.net/", | |
//definisco il tipo di parametro passato (in questo caso "noun_arb_text": testo semplice) | |
takes: {"qualcosa di interessante": noun_arb_text}, |