Unix command to create a tar of a specified number of files
I am looking for a Unix command which will create a tar of 10 files from a directory. ...
I am looking for a Unix command which will create a tar of 10 files from a directory. ...
I'm going to build a high-performance web service. It should use a database (or any other storage system), some processing language (either scripting or not), and a web-server daemon. The system should be distributed to a large amount of servers so the service runs fast and reliable. It should replicate data to achieve reliability and a...
Hi , i have a script which simply connect to the table in sql*plus and inserts a row in the table. it is throwing an error as below: SP2-0552: Bind variable "BIND" not declared i am not able to figure out exactly what the bind variable is in the query that it is trying to insert. ...
import httplib conn = httplib.HTTPConnection(head) conn.request("HEAD",tail) res = conn.getresponse() I can get the res.status , which is the http status code. What other elements can I get? Why is it that when I do print res, it won't print the dictionary? I just want to see the keys that are in that dictionary... ...
I notice that sometimes audio files on the internet have a "fake" URL. http://garagaeband.com/3252243 And this will 302 to the real URL: http://garageband.com/michael_jackson4.mp3 My question is...when supplied with the fake URL, how can you get the REAL URL from headers? Currently, this is my code for reading the headers of a f...
I've been learning about gems lately, and one error I get is: WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren't both writable. WARNING: You don't have /Users/Alex/.gem/ruby/1.8/bin in your PATH, gem executables will not run. ERROR: Error installing rubygame: ffi requires rake (>= 0.8.7, runtime) I u...
Hi All, How to write a program for executing the 'ls' command in ObjC ? Any API available ? Thanks ...
I need all the Unix commands which are specific to AIX machines. For e.g.: for Unix top is equivalent to topas in AIX. I need the list of similar commands. Where can I find it? Is there any documentation for this? ...
Hi, I am trying to Compress and Archive all the files in a folder, using Java Runtime class. My code snippet looks as this : public static void compressFileRuntime() throws IOException, InterruptedException { String date = Util.getDateAsString("yyyy-MM-dd"); Runtime rt = Runtime.getRuntime(); String archivedFile = "myuse...
while executing a shell script in Unix Bash Shell, say any file in another folder and that is referenced by the script references some other file like ../../file_system_1/public/dir1/dir2/file2.xml script.sh --> references dir1/file1 as "./dir1/file1" dir1/file1 references another file as ../../file_system_1/public/dir1/dir2/file2.xml...
Hi All, I would like to send an email through a remote SMTP server. How can this be done? I will be sending the email from a bash shell script. I'm using a unix machine. uname -a returns: Linux linux 2.4.21 BrandZ fake linux i686 athlon i386 GNU/Linux Thank you. ...
How to find the start up time of a Solaris 5.1 server using a shell script,need to know how much time it took to be on running state?I need to know how much time it took to come to running mode from starting mode? ...
My company uses an internally developed package to support internationalization/localization. However, it was developed some twenty years ago, and the libraries are restricted to one product line. I'm interested in where the state of the art stands. Is Unicode the base character set for all international efforts today? Do people still us...
Hello! I'm making POST requests with CURL, and I would like to output cookies made during that request... Is that possible? :) ...
Hi all, I am using the following code to remove both leading and tailing spaces from all lines of a file A.txt sed 's/^[ \t]*//;s/[ \t]*$//' ./A.txt > ./B.txt The problem occurs on the lines where there is a t in the beginning or at the end. So say for example, the original line that starts with the string "timezone" becomes "imezon...
Here's the statement I'm running: grep -i -H 'ConfigureControls' *.as Note that I'm forcing file names with the -H flag. What I get back is: } } trac} } this.chairControls.debug.appendText("\nAn error occured when communicating with server:\n" + err.message);l);his.chairXML.storeResult; {ackage {ublic cpublic frequest = ...
I use vi quite often to edit files. Usually I need the file to appear on screen with line numbers. For this I do set nu in edit mode. What a drag! Can I automate this? Is there any way where vi will directly open the file with line numbers visible immediately? If so, are there any other tips that will make my experience with vi more eff...
I'm trying to write a python script which follows the common unix command line pattern of accepting input from stdin if no file name is given. This is what I've been using: if __name__ == "__main__": if len(sys.argv) > 1: stream = open(sys.argv[1]) else: stream = sys.stdin Is there a more pythonic way to do th...
The following *nix command pipes a hex representation of an IP and port (127.0.0.1:80) into the hexdump command. printf "\x7F\x00\x00\x01\x00\x50" | hexdump -e '3/1 "%u." /1 "%u:" 1/2 "%u" "\n"' The -e flag allows an arbitrary format to parse the input. In this case, we are parsing the first three octets of the IP into unsigned decima...
I used this command to find mp3 files and write their name on log.txt: find -name *.mp3 >> log.txt I want to move the files using the mv command and I would like to append that to the log file so it could show the path where the files have been moved. For example if the mp3 files are 1.mp3 and 2.mp3 then the log.txt should look lik...