Code:
fd = open("file", O_CREAT);
The file turned out to be executable. When I did a 'ls -l' on the directory w'/ that file it has a "T" at the end of the permissions where the executable bit would be set for the "other" group.
fd = open("file", O_CREAT);
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"
#include "wavelet2d.h"
#include "wavelet2s.h"
gcc -L/home/mario/wavelet/wavelib/linuxstatic -lwavelet2s wavedemo1.cpp -o wavedemo1
arm-linux-gcc -o hello hello.c
#!/bin/bash rsync.exe -rltDvP --exclude "System Volume Information" --exclude "RECYCLER" --exclude=\$RECYCLE.BIN --delete "/cygdrive/c/users/<USERNAME> /desktop/mvi_1840.mov" "/cygdrive/c/users/<USERNAME>/desktop/test/"
sudo ./file.sh
./file.sh
sudo chmod 777 ./file.sh
chmod 777
sudo chmod 777
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
#!/bin/bash homeDir="$HOME" ls ~/Parent/ | cut -c1-9 > ~/test_111.csv while read Child do Entry="$(ls $homeDir/Parent/$Child/ABC/XYZ/DEF/PQR)" echo $Entry for (( c=1; c<=5; c++ )) do sed -i ci"$Entry" test_222.csv done done < test_111.csv