Visit Experts Exchange from your mobile device to search, ask, and monitor your questions. Never lose touch again.

Preview From Your Desktop
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested Unix Systems Programming Solutions: 51 - 75 of 764
 
Is there a command to gzip an entire Unix directory. When I try giving gzip * inside the directory it gives an error saying "arg list too long." Also is there a single command which will li...
hi, i need a fast function to calculate the checksum of a file. (similiar to the cksum shell command) thanx, ittay
I am a novice shell script programmer, so be gentle! Currently I have a automated process that uses about 10 separate Bourne shell scripts... One will execute, then fire off the next and so...
I have the following script that is supposed to copy the given file to a timestamped file using the date only in the filename. If a second copy is done on the same day, then it appends "_1",...
Hi, I use SQL Loader command line in Unix. Will it return exit code != 0 if there is any error? What are the possible codes? Because I have some references: All rows loaded successf...
I'm making a ksh script that iterates through a file and replaces a string of words with another string of words.  I can read the file one line at a time, but don't have the code that will rep...
Hello, I'd like to 'cat' a specific file within a tar file without having to extract it to disk. Then I'd like to run that output to a pipe, so that I can pipe to commands like cut to fo...
Hi All, I want to use arrays in UNIX like other languages. e.g., i=0 ab="abc" while (i<5)   display abc(i)   i=i+1 do how can i use variables using arrays in UNIX. If anybody can h...
HELLO EXPERTS, i need to transfer several files from specified directory in NT(in the network)to unix and do it with shell script(The operating system is unix and the shell will run from ther...
In java, I can check the instance of an instance by using the keywork instanceof. Do C++ in unix have the similar operation?
Hi,   I have an HP-UX box with Oracle 805 and 817 installed. I recently migrated to 817 and so two different versions. However when I invoke sqlplus evertime the 805 version gets invoked. ...
Hi Unix Experts, I have a problem that ^M gets added at the end of each line when I transfer (ftp) a file from dos to my AIX server. Is there an equivalent of dos2unix (which works on Uni...
Hi, All that I am doing is (on my HPUX command prompt) >mailx -m -s "hi" validemailid@somedomain.com After I press enter ,it then stops for the email body. I type hello and then CTRL-D ...
I need to remove blank spaces from a string in ksh script. ex: 'CH GNMA SCS' -- i need it to look the following way 'CHGNMASCS' I am running ksh script on UNIX platform. Please help.
Hi, I'm working on a project that one of its tasks is to measure the average memory and cpu usage for the passed X minutes. The plan is to cover tier 1 Unix/Linux OS, I'm a programmer an...
have a small problem in this makefile      CC=gcc                 1.o: 1.cpp      #ifeq ($(kw),y      $(CC) -o  2.o 2.cpp      #ifeq ($(kw),n)      $(CC) -o  1.o 1.cpp      #endif ...
What I want to do:   Spawn a process, feed some input into it, see what the return code is from the process. I can't seem to find a way to do this. set my_command do_this set my_data...
I have firefox v1.5 installed on Fedora core 4 I want to run firefox from the command line or better yet script it and put it in cron... Any ideas? Many thanks
how can I make awk print out the lines it finds in reverse order. EX:    awk '{print $1,$2} file1.txt out put: sept 3 sept 4 sept 5 ..... I want the lines it prints out to be ...
Ok here's the situation. I need to strip all lines from a long file which contain certain words. This list of words is ever-growing, and will probably stay that way. Currently I have a bash sc...
Hello, I have a file with few words that I need to remove, I don't mind to remove them one word at a time. I thought of AWK and/or bash script for that, but I'm new in both and not sure how...
what command/script is used to find out yesterday's date in UNIX/PERL ?
One of my developers came up with some unusual code that had me wondering what was going on. See the below scripts.  In particular, it's the line exec /tmp/b & that has me wondering t...
Hi, I am using mget to download all the files within a directory from an ftp server to my local machine. I am using something like this: cd <remote directory> lcd <local directory> ...
Hello experts, I have 2 restrictions on a script I need to write. I need to use bash shell. I cannot generate temporary files due to permission settings on the file system. Given those r...