Search Results

Search: Posts Made By: a_programmer
2,909
Posted By a_programmer
Not sure if this will work, but you can try this...
Not sure if this will work, but you can try this as well:

> sftp -oPort=22 user\\@name@hostname

Notice, the double escape... one is for the shell and another for sftp.
Forum: Programming 05-03-2011
1,714
Posted By a_programmer
Dataset Library for C?
I am looking for an opensource dataset library for C. Something equivalent to ADO.Net.

Specifically, I am looking for the following features:
1. Create a Dataset from a file (XML or CSV).
2....
2,547
Posted By a_programmer
Hmm... this can be done. But it requires a step...
Hmm... this can be done. But it requires a step of post-processing the value after read, which I was trying to avoid. :)
Seems like extra processing will be required to solve my problem. :(
2,547
Posted By a_programmer
I can write an abstraction layer (say, a function...
I can write an abstraction layer (say, a function called readx) around read and use it instead of using read directly in my main loop.

However, I am writing a framework to integrate database...
2,547
Posted By a_programmer
Read Embedded Newline characters with read (builtin) in KSH93
Hi Guys,

Happy New Year to you all!

I have a requirement to read an embedded new-line using KSH's read builtin.
Here is what I am trying to do:


run_sql "select guestid, address, email...
6,692
Posted By a_programmer
try this: while read trigger_file do ...
try this:

while read trigger_file
do
while [[ ! -e $trigger_file ]]
do
print "Waiting for trigger file: $trigger_file"
sleep 10
done
done < $TMP_TRG_FILE

all the...
2,053
Posted By a_programmer
I think your problem lies in the highlighted red...
I think your problem lies in the highlighted red text above. You are creating a file called fname1, but trying to cat $fname1. Since $fname1 is not set, cat blocks for input from stdin.
2,206
Posted By a_programmer
(()) are optimized for numeric operands. So, if...
(()) are optimized for numeric operands. So, if you run the following:


x=1
[[ $x -eq 1 ]] && echo "true"


ksh will do 2 steps... first it will expand $x and get an expression like:
[[ 1...
Forum: Programming 11-12-2010
10,517
Posted By a_programmer
I see that you are filling the mqAttr structure,...
I see that you are filling the mqAttr structure, but not passing it to mq_open... it should not cause the error, but just noticed it.

Also, you are passing both O_EXCL and O_CREAT to mq_open... as...
2,142
Posted By a_programmer
Writing Custom Builtins for KSH93
I am looking to create some ksh93 extensions using the custom builtin feature.

I can successfully create a builtin function, load it using the builtin -f command and get an output. However, I...
1,592
Posted By a_programmer
if your directory does not have any...
if your directory does not have any subdirectories (or if you don't mind searching through the as well), you can use recursive grep to avoid the issue of "Arg list too long".
Here is an example:
cd...
2,453
Posted By a_programmer
Based on the number of volumes/files on your...
Based on the number of volumes/files on your server, find can take a substantial amount of time to search something from /.

Time one of the find commands separately and multiply that time by 3....
2,206
Posted By a_programmer
A lot of OSes have replaced the default ksh with...
A lot of OSes have replaced the default ksh with ksh93.
Run:
/usr/bin/ksh -c 'echo ${.sh.version}'

if you get an output with version information, its ksh93.



I would go with [[ ]] and ((...
Forum: Programming 11-11-2010
10,517
Posted By a_programmer
What value are you using for oflags? If this is...
What value are you using for oflags? If this is the first time you are connecting to this queue, you need to pass O_CREAT to tell mq_open to create the queue.

Here is a link to very good...
Forum: AIX 11-11-2010
1
scp
3,441
Posted By a_programmer
scp works similar to cp command, except you need...
scp works similar to cp command, except you need to specify the source or destination remote machine.
So, doing scp -rp will take care of copying entire directory.

The only issue I have seen...
Forum: AIX 11-11-2010
12,053
Posted By a_programmer
I use a similar setup between two AIX boxes. Here...
I use a similar setup between two AIX boxes. Here is what I see in the debug log when I ssh into the remote host:

> ssh -v hostB
OpenSSH_3.8.1p1, OpenSSL 0.9.6m 17 Mar 2004
debug1: Reading...
3,175
Posted By a_programmer
You can download it from here: rsync...
You can download it from here:

rsync (http://rsync.samba.org/)

You will have to go through the documentation to tweak for your exact requirements. But here is a sample command that I use to...
3,175
Posted By a_programmer
you need the "rsync" utility. It can do exactly...
you need the "rsync" utility. It can do exactly what you want.
13,101
Posted By a_programmer
Do you mean you do not want to use your local...
Do you mean you do not want to use your local unix server's configured smtp to send mail?
In my understanding, you only have to worry about SSL if the server that you are using to send an email...
13,897
Posted By a_programmer
Did you replace "cd /abc/xyz" with the common...
Did you replace "cd /abc/xyz" with the common parent directory where all your data files are?

So, if you type the following on the command line, you should see a list of Data.txt files:

cd...
9,774
Posted By a_programmer
Sorry, not really familiar with that program. If...
Sorry, not really familiar with that program. If it is normal for that program to handle 100K+ data points, I think there would be some alternate file layouts that it supports.

As for the...
13,101
Posted By a_programmer
you can use the regular mailx command to do that:...
you can use the regular mailx command to do that:



echo "test message" | mailx -s "Test subject" xyz@gmail.com



In some corporate systems, the unix smtp server is configured to not allow...
9,486
Posted By a_programmer
Try changing the httpd.conf to listen on a higher...
Try changing the httpd.conf to listen on a higher number port... a common favorite is 8080.
1,426
Posted By a_programmer
sort a.txt > a1.txt sort b.txt > b1.txt ...
sort a.txt > a1.txt
sort b.txt > b1.txt

diff a1.txt b1.txt
9,774
Posted By a_programmer
Try this: #!/bin/ksh #set -x ...
Try this:

#!/bin/ksh

#set -x

typeset TEMP=.tmp.$$.dat

function transpose_file
{
#set -x
typeset file=$1
typeset -Z3 i=0 ## -Zn, n is the order of maximum number of columns. So if...
Showing results 1 to 25 of 55

 

Featured Tech Videos

All times are GMT -4. The time now is 09:59 PM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy