Search Results

Search: Posts Made By: dukevn
5,215
Posted By dukevn
Yeah, I can do that, but I dont like the message...
Yeah, I can do that, but I dont like the message "No process vlc found" if there is no instance of vlc is running. The if is to check if there is one running, then it will kill it, otherwise do...
5,215
Posted By dukevn
Pass subshell through expect and SSH
Hi folks,

What I want to do is to check if there is an instance of running vlc on a remote server, then kill it, and start it again. The code I came up with is:
#!/bin/bash

expectFcn() {
...
2,593
Posted By dukevn
How did you run the script via mouse? When double...
How did you run the script via mouse? When double click on the script, there should be a dialog asking you if you want to Run in terminal, Display, Cancel or Run. Run or Run in terminal both works...
65,085
Posted By dukevn
Thanks Jim. At first I thought of doing something...
Thanks Jim. At first I thought of doing something similar to that: write a code to decode (my own algorithm or any available tools) the encrypted password. But then at last the naked password will...
65,085
Posted By dukevn
Got it. Thanks Alister. D.
Got it. Thanks Alister.

D.
65,085
Posted By dukevn
Hi Corona, I think you got it wrong. I did...
Hi Corona, I think you got it wrong. I did mention that I knew authorized keys already (and I have been using it quite a while), but in my opinion it is not automation as expect (yes, I thought it...
65,085
Posted By dukevn
That is so true Corona, and I should have quoted...
That is so true Corona, and I should have quoted "Best" to imply what I really wanted when posting the question: I want to learn. Few days ago I still thought that ssh was impossible to be automated,...
65,085
Posted By dukevn
Your tr'ing way is interesting fubaya. Honestly I...
Your tr'ing way is interesting fubaya. Honestly I have not heard of tr before. Anyway, that is just to protect the bash script itself, not the information produced by ps. The second way (which I...
65,085
Posted By dukevn
Thanks danmero for your suggestion. I want to...
Thanks danmero for your suggestion. I want to avoid this as well, because I want to create a ready-to-run program, no need to type anything else (pass phrase for example).

D.
65,085
Posted By dukevn
Best way to hide password in bash script?
Dear folks,

The title of my thread says mostly all of what I want to do. Basically I want to auto-ssh to a remote host, and run a program on it (VLC is just an example). I wrote a script which...
Showing results 1 to 10 of 10

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