Okay...so I'm a newbie who struggled through a online C++ class and am now taking an online Unix class to complete my degree (thankfully not in programming :)
What I'm working on an assignm...
I am trying to compile the GMP library under windows 2000, using cygwin and mingW. I know the platform is windows, but the IDE is posix.
The full error:
checking for suitable m4... con...
I'm running a script in Unix that extracts data from Oracle and writes it to a file.
At the top of the output file there is a message that says "stty: tcgetattr: A specified file does not ...
making a script to send a alert, can't quit figure out what to put in the [ ] below
command work ok if done on command line, just can't put it into a script the right way
#!/bin/sh
su ...
How do you write a function in ksh and pass it a parameter? I have guessed something like this but haven't had success:
#function
my_function(ARG)
{
echo $ARG
}
#mainline
my_function("...
can someone help with the script/command required to send a mail with attachment from a UNIX server to Windows mailbox.Is there any additional configuration that needs be done on the UNIX box ...
Unix does not clean up IPC resources (semaphores and shared memory) after a process crash.
Is there a way to bypass the problem?
In the following program, if $RECV = 9252610000, the output line is written. However if $RECV = 925261CORP then no output is written.
FILE UCSIN:
ISA*00* *00* *08*020...
WHat is the end of line character in Linux, CR, LF, or a CRLF?
Basil
Is there an equivalent of elseif (eg: "elif" in ksh, and "elsif" in Perl) in awk, or do I have to simulate it by coding an "if" within an "else"?
Hi,
could anybody tell me on how to test whether a port is open or not. The script should read three values
1. hostname or IP address
2. lower limit of port number (ex:20001)
3. higher l...
I'm writing a backup routine to .tar the contents of selected
directories. That's the easy part. Here's the problem.
I was to EXCLUDE the directory 'logs' from all the selected
directories t...
I have a comma delimited file created by SQLPLUS through an Unix Script. It just so happens that the third field is a text field that has an incorrect CRLF sequence embedded in it. This is ...
I have the following long listing of files.
1.As you can see sometimes i see modification time of a file as May 23 2006,
while other times i see it as Dec 28 20:20. Why so?
2.Also ther...
How do you split a ksh shell variable into an array with awk?
Perl version would be
@a = split /:/, $ENV{'PATH'}.
Thanks
In Stevens' book "Unix Network Programming" is the source code for an Internet ping client. The following part of the code, however, puzzles me:
struct sockaddr_in dest;
...
host = gethostby...
I seem to recall a slightly different problem with "nohup" a year or two ago when processes died after logging out, and I was somewhat baffled as isn't the whole idea of nohup to allow them to...
Hi Experts,
could you please help me to resolve little problem with TAR?
I would like to untar my archive created with 'tar cvf my_file.tar *' into different location that it was created. Is...
How do I create and initialize an associative array. I tried :
typeset -AE usage (where usage is the name of te array), but it shows me typeset: bad option(s)
Urgent reply needed.
...
I am calculating usage of bandwidth from some ports pulled from a database. The data is in bps (bits per second). The total usage of all ports needs to be displayed in Mbps (Megabits per secon...
I am executing an unix script inside a sql script by passing some value to unix script as a parameter.
SQL script: SQL_SCRIPT.sql
host sh unix_script.sh par1 par2
UNIX Script: UNIX_SCRIP...
I've got a quick question regarding the connect() behavior in the
following situation. In a client program I open a socket, set some
options on it (KEEPALIVE, LINGER, REUSEADDR), set it to the...
I have the following Korn Shell script code:
#!/bin/ksh
cd "$1"
if [[ -f $1$2 ]] then #if file exists then get a count
a=`wc -l < "$1$2"`
if $a > 0 then
print 0
...
The statement below is working fine, but I need to know the syntax for adding a CC mail address.
echo ${MESSAGE_ed} | mailx -s "${SUBJECT_ed}" ${RECIPNT_ed}
The variable that holds...
I'm trying to tail a log file, and pull out meaningful lines to save in
a different file. This command does what I want:
tail -f log.file | grep '^\|' | grep "stockA\|stockB\|stockC\|stoc...