I have just downloaded imagemagick and when I try to convert a pdf file to a jpg file. I get the message no such file or directory. The file I want to convert is in Home/Downloads
yum -y install libreoffice-headless libreoffice-writer
Package 1:libreoffice-headless-4.0.4.2-14.el6.x86_64 already installed and latest version Package 1:libreoffice-writer-4.0.4.2-14.el6.x86_64 already installed and latest version
libreoffice --headless -convert-to pdf myfile.xlsx
tester_name = str (socket.gethostname()) def upload(ftp, file): ext = os.path.splitext(file)[1] if ext in (".txt", ".htm", ".html"): ftp.storlines("STOR " + file, open(file)) else: ftp.storbinary("STOR " + file, open(file, "rb"), 1024) parse_source_path = ('/path/to/where/i/go/') parse_source_file_list = os.listdir(parse_source_path) ftp = ftplib.FTP("server_IP") ftp.login("username", "pass") folder_list = [] ftp.dir(folder_list.append) if str(tester_name) not in str(folder_list) : ftp.mkd("%s"%tester_name) ftp.cwd("%s"%tester_name) for files in parse_source_file_list : print files upload(ftp, files) else : print "later"
IFS=$'\n' var=$(sed 's/\"http\(.*\)\/\(.*\).wav\"\,\".*/\2/g' 1797.csv) # filenames of all files var2=$(sed 's/\"http\(.*\)\/\(.*\).wav\"\,\"\(.*\)\"$/\3/g' 1797.csv) # contents of all files for j in $var; do #Here I do not know how to use $var2 done