Search Results

Search: Posts Made By: doonan_79
Forum: Programming 06-20-2012
3,035
Posted By doonan_79
Run interactive program in background and grep it
I need to run an interactive program in the background so I can grep it for specific data to use for some logic in a script.

There is no quiet or background mode on the program so I plan to...
Forum: Programming 05-08-2012
7,976
Posted By doonan_79
FOLLOW UP: FYI Have now tested code and...
FOLLOW UP:

FYI Have now tested code and implemented a change following NeutronScott's tip. See working function:


check_passwordless_ssh_working()
#check passed parameter, assuming it is a...
Forum: Programming 05-01-2012
7,976
Posted By doonan_79
Test SSH but do not return password prompt
Hello forum,

I want to have a function to test for passwordless SSH setup. Pretty simple. However, what I'm finding difficult is to NOT return a password prompt to screen IF it's not in place.
...
Forum: Programming 04-30-2012
7,057
Posted By doonan_79
Unfortunately none of these fixes my issue....
Unfortunately none of these fixes my issue. Actually the "-s" switch without the "--" worked for me with my direct (no sesu) command. Here is the working command.

ssh <targetserver> exec...
Forum: Programming 04-27-2012
7,057
Posted By doonan_79
I'm running a Korn shell (ksh) and I think the...
I'm running a Korn shell (ksh) and I think the "-s" switch gave me issues.... are those two dashes required? i.e. the "--" after "-s"? Thanks!

---------- Post updated at 18:18 ---------- Previous...
Forum: Programming 04-27-2012
7,057
Posted By doonan_79
But that's my point - this is in the foreground -...
But that's my point - this is in the foreground - it is interactive. I want it to prompt the user for a password and for them to enter it. This is a backup method in case SSH DSA keys are corrupted...
Forum: Programming 04-27-2012
7,057
Posted By doonan_79
Foreground sesu SSH with here document
I'm trying to write a foreground (password prompt) ssh command, passing in a here doc - any idea where I'm going wrong?

ssh <user>@<targetserver> /usr/seos/bin/sesu - <targuser> -c /usr/bin/ksh...
Forum: Programming 04-27-2012
5,338
Posted By doonan_79
I found a way to alter it - have to have here doc...
I found a way to alter it - have to have here doc (EOF) in speech marks ; "EOF"
so that it's all sent as plain text (nothing is exapanded etc.) so that any commands run on the remote host - not the...
Forum: Programming 04-27-2012
5,338
Posted By doonan_79
it's set in the greater programme so it's OK. The...
it's set in the greater programme so it's OK. The sub-script within $() is the problem I believe. It seems to me that it's evaluated before the here doc is passed to the SSH --- I want it to be run...
Forum: Programming 04-27-2012
5,338
Posted By doonan_79
Background SSH using here document
I'm trying to use Here documents to pass several commands to a remote server over SSH. However I'm having problems. The code is as follows:


nohup ssh $i_hostname exec /usr/bin/ksh -s << EOF >>...
Forum: Programming 04-27-2012
14,714
Posted By doonan_79
A quick, and wonderful response - thank you - one...
A quick, and wonderful response - thank you - one more thing though. How would you run your final version there in the background (so if it's in a script that script can continue on while that code...
Forum: Programming 04-26-2012
14,714
Posted By doonan_79
Background (nohup * &) SSH command block possible?
Hello,
I am trying to find a way to send several sequential commands via SSH to a remote box in a single command.
Thoughts so far:

1) Can I put them into a function and call the function within...
Showing results 1 to 12 of 12

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