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: 151 - 175 of 762
 
What is hard link and soft link? and what's the differences between them?
Hi! I need to know which is the main difference between fork and vfork on Unix Systems. Thanks
I am creating a Unix shell program.  I am trying to parse commands and then execute them using Unix system functions.  I am having problems implementing the chdir (or cd) command into my app f...
I have a struct like that: struct msstruct {   .......   int tid; //thread id }; struct msstruct ms[no_threads]; I want to pass a struct to pthread_create, such as pthread_create(...
While another program was calling the below korn shell script: ======================================== #!/bin/ksh exec 0<$1 while read i do         if ! echo $i | grep "^#" > /dev/null ...
I can print out the last field such as  awk '{ print $NF }' how can i print out the last field and the Next to last field.......
Hi, I'm trying to logon in a Telnet session via these commands (ksh): (      sleep 2         #wait telnet to connect      print "root"    #prompt username      sleep 2              print...
Hi All, We are running a cron job that runs a PHP script.  The PHP script is used to create an array of filenames (that exist in the webserver folder) and then it runs an exec command to un...
Hi If a variable is defined as static in a function or if a global variable is declared as static where is it stored in the process memory area. Whether it is stored in the initialised data...
Hi Experts,  I have a list of interview questions whih I need answer from you. Please help me on this. 1) Unix command to copy the files with name containing test from /export/home to /...
I want to create a daemon in server which can listen to clients. The daemon will be connected to 3 modem ports(the code for this program is done). The clients will send data to the daemon w...
Hi,  I am new to shell scripting.  My requirement is such that,  I have a flat file delimited with '||', but there are  Tabs (\t) in between of some words.  Please give me the complete sh...
How do I use the substring function in awk? I am trying to do this on a Solaris box; for example given string 123456789...  (unknown length) I would like to get back the substring which exclu...
UNIXer, Can I redirect the stdout and stderr to a temporary file by the following code ?   filename=tmpnam(0);   freopen(filename, "w", stderr);   freopen(filename, "w", stdout); But, how co...
how do I specify in a Unix Shell Script if I have a file that starts with filename.  exp:  If [ -f ./filename.*] If the directory has any files that start with filename.  the if statment s...
I have a ksh script that accepts a parameter to determine which query it executes.   I need to run this multiple times passing different values.   I'd like to have a master ksh script that ...
I want to execute a program which outputs to stderr, in a section of c code.  I could use popen() to monitor output, but this only pipes stdout back to the calling program.  I need to read fro...
1)writte a shell script to find the lenght of a given string? 2)write a shell script to reverse a string? 3)writte a shell script to check the if a given string is a palindrome or not?
Hello All. I have a script which basically reads a file and moves the files between 2 directories. I am attaching the code. This script has a for loop which reads a file (a pipe delimited f...
I have two data files with one column, I need to merge two files into one file1 IBM DELL file 2 HP COMPAQ I woulld like to have the result like this IBM HP DELL COMPAQ
spool test.lst select 'to_date('03-02-04 12:00','dd-mm-yy hh24:mi') ' || table_name from user_snapshots ; spool off Jeg get an error SP2-0552: Bind variable "MI" not declared.
I'm trying to get a script written to change the carrige return linefeed characters to linefeed characters I have a file where all lines end with Hex 0D 0A  I want them to end with 0A I ...
I'd like to add an output formatting enhancement to a C language open source command line terminal application. The application does not place the console into any sort of raw mode, it just...
Is there a way (tool/utility/script) to easily convert c-shell scripts to bash complaint scripts? We have many scripts written in csh and now we are being asked to convert them all to bash (bs...
Hi, I am new for the unix ksh program. I need create the shell program to read input file, save the information into array, then use the array in a loop. The input like: 1001,my name,my...