2000 organizations, including eBay, Ericsson, and Lockheed Martin, now work smarter with Corporate Accounts. Save over 36%!

 

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

 
Time Tested Unix Systems Programming Solutions: 201 - 225 of 764
 
I am getting an error "netout: broken pipe" when ftpying a file from Solaris to Mainframe. The file size is 1620 MegBytes.
I am trying to ftp files from /appl/kims/receive/oucrate.dat to /appl/kims/receive/oucrate.dat ---------------------- I issue this command. ---------------------- ftp -vnd kimsd2.deven...
in csh script, it can setenv as well. ex: setenv HTTP_PROXY http://www.proxy.com:8080/
I cannnot seem to get this $3 column "right" justified after performing a simple calculation on the two floats. If you subtract column 1 below from column 2, it looks that the '-' sign cau...
Hi all, I have text file on unix server in which the fields are seperated by any delimeter like pipe or comma etc. My question is i want to extract those records only which satisfies certain ...
Came across a ksh script that has these two lines right near the top. #include <string.h> #include <stdio.h> Is there any reason why these should be there,  or are they just artifacts ...
Is there any way to schedule a cronjob to run more often than once per hour? The only way I have found to do this is by repeating my cron entry for every minute of the hour: 01 * * * *.....
I am having problems with an nfs mount from aix 3.2 to solaris 2.5.1 that was working before but is doing strange things now. I am migrating data from an aix machine to a solaris machine. I c...
In my c++ programme I spawn several processes using int main() {   //.....stuff     system(foo_n &); //n=1,2,3 etc.   //..more stuff } (the foo_n are ssh commands of the ...
Hi, I have a file which contains data as follow in each line. 123 456 789 What I need to do in here is to take the data from the file and put it into  another file (fileb.txt) as fo...
Hi,     I am doing C++ programming in unix. I tried with unix funciton call setitimer. Please find my program snippet attached with this thread. If I remove the static keyword in the progra...
Hi I need a script, which will write a variable(result) value to file and the variable will have value as below. 0202161075:201:01473999998:17-JAN-10:19-JAN-10 0202161075:200:01473999998:17...
Dear experts -                  I have a file name, I have to parse the file name and extract some information from the file and add that information to the same file as an additional colum...
Does anyone have the source to how they have implemented this on Solaris. Especially the part that checks upp if the file i opened and by what process ids. A code example would be nice. ...
I have made a script to add a user to unix. In the script i read the /etc/passwd file : uid= " `awk -F: ` { if (big < $3)  big=$3 }  END  { print big + 1 }` /etc/passwd`" I am running the s...
The title says it all. From a shell script I invoke a Except script, and I want to pass one ore more parameters to it. How can I do? Examples are welcome.
Hi Experts I have a file that contains lines of text that I want to use in a shell scripts, the problem is I dont know how to get the subtring I want from each line. the file structure is ...
What is the syntax in Ksh for OR ? I want to do something like this if $x=0 or $x=1 then   do something fi
The following script will remove log files that were last modified yesterday: DATE=`TZ=GMT+24 date` DATE="`echo ${DATE} | awk '{print $2}'` `echo ${DATE} | awk '{print $3}'`" rm `ls -ltr ...
I want to write a script that will rlogin into a number of machines systematically and perform a function. I'm running solaris 2.6 ... /sbin/sh I have written a very simple script to test ...
hi, In my unix program I am creating a series of threads inwhich i am executing different functions on creation of new thread.I want to have the track of all these thread ids of the indiv...
I have create a C++ program on Linux to capture UDP packet on a specific port. I need to know the destination IP address of packets I have captured. I know the destination IP is into the IP h...
I need some suggestions regarding a script I am trying to write.  There are two problems . Currently, I am writing a script in sh on HP- Unix box. I am able to run the program from the com...
Count="2"         while [ $Count -le $FILE_COUNT ]         do                 File=`grep ${ENTITY}"|" $CFG_FILE | awk '{print $Count}'`                 Count=`expr $Count + 1`         don...