Search Results

Search: Posts Made By: lastZenMaster
4,370
Posted By lastZenMaster
Figured it - by using echo $? inside of expect...
Figured it - by using echo $? inside of expect commands, that is:
expect -c 'spawn ssh host "<my commands> ; echo $?"; expect password: ; send 123456\n; interact'

And then I just parse that last...
1,084
Posted By lastZenMaster
Unix - one to one correspondence to files
Hello,

I am writing a Log Unifier program. That is, I have a system that produces logs:
my.log, my.log.1, my.log.2, my.log.3...

I want on each iteration to store the number of lines I've read...
4,370
Posted By lastZenMaster
Using expect doesn't preserve the stderr
Hello,

I am performing the follwing line from a unix server:
expect -c 'spawn ssh otherHost chown -R user:group /usr ; expect password: ; send 123456\n ; interact ;'

I am getting return value...
3,767
Posted By lastZenMaster
scp not working because of prompt (AIX, tcsh)
Hello,

I have this problem:
I have a server to which I ssh, and it has a special prompt request. The prompt is done by a ?prompt command.

It is fine with SSH, since the prompt I guess gets...
4,159
Posted By lastZenMaster
Read from file specific place in file using inode
Hello, I am using tcsh on AIX.
I would like to write a script that does the following:

1. given an inode, how do I find exactly the name of the file?

I know I could do this using ls -i | grep...
Forum: Programming 07-14-2010
1,455
Posted By lastZenMaster
I found the answer - just if anybody else in the...
I found the answer - just if anybody else in the future is interested in knowing how - one could achieve this by using some sort of ssh jar.

I used ganymed-ssh2-build-209. It allows you to preform...
Forum: Programming 07-10-2010
1,455
Posted By lastZenMaster
File handling on remote ip
Hello,

I am writing a small Java program that needs to combine informatuion from two files - both placed in folders on remote ips.

I have access to those places using ssh command.

Could...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 11:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy