Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I am trying to automate connecting to UNIX using PuTTY and sending commands. My team use this to execute a series of processes that can get really repetitive.
I have already accomplished this using autoit v3, however I can only send commands to the putty window but not read anything from it, which doesn´t allow me to change the flow of the script based on command responses and to know exactly when a specific command executed (currently using Sleep())
Check out Plink on this page: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
You can use Run, StdoutRead and StdinWrite to write input and read output.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I mean firewalls like Checkpoint, Fortigate, sonicWALL etc.
Do they have have API or Remote CLI ?
can i, for example, send them a remote call to filter in\out a certain port?
I Just want to know if that's possible, if you have examples that's awesome, but evena simple "yes, Checkpoint and soincwall does that" are great!
I only have some experience with Fortigate-firewalls. They usually have SSH.
This means you could use a command like this:
ssh <hostname_or_IP> -t "echo 'hello world'"
to sumbit your new rules to your firewall.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
There's plenty of websites that offer this service for free, like this one.
The input/output for the service is perfect. Here's a url, and it gives me back some XML.
Does anyone know of a similar service that is available as an API, so I can just call it by passing a site url, and it return some xml?
Not free. But you could use the command line version of A1 Sitemap Generator. It can do what you want, see: http://www.microsystools.com/products/sitemap-generator/help/automate-sitemap-build-upload/
Otherwise, I believe you can find some old PHP scripts that create sitemaps, and then maybe tailor them to your needs? One example might be: http://enarion.net/tools/phpsitemapng/
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I was editing a file over SSH when my computer crashed and I got the BSOD. I was SSHing through Putty. I would really like to recover if possible. I don't know if there is anyway to restore the SSH session and save from there. Any help would be appreciated.
No, there is no way to restore your session, unless you used something like screen.
But there might be a way to restore your file, but that depends on the editor you used. Editors like Vim and Emacs store the changes of unsaved files, and will notify you the next time you open the file.
Thus all you have to do in this case is open the same file again. In other cases the changes might just be gone.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Say I forget to run screen at the beginning of login, I've started up a program like emacs, have many files open, now I want to attach this to a session of screen. Is there any way to do this? Or do I have to exit emacs, run screen, then run emacs again, opening up my work from the beginning?
Thanks for your help.
This post from ServerFault might be useful: https://serverfault.com/questions/24425/can-i-nohup-screen-an-already-started-process
reptyr works if you're on linux
I don't believe this is possible - your emacs session is a child process of your shell, and I believe that a secure OS is pretty strict about making changes to the process tree from outside the process.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
I'm trying to configure an ejabberd installation, using LDAP authentication, but I just can't login, even with the admin user.
This is part of my ejabberd.cfg file:
%...
{auth_method, ldap}.
{ldap_servers, ["server2000.tek2000.local"]}.
{ldap_port,389}.
{ldap_uidattr, "uid"}.
{ldap_base, "dc=server2000,dc=tek2000,dc=com"}.
{ldap_rootdn, "tempadm#tek2000.local"}.
{ldap_password, "secret"}.
%...
What am I missing?
I must say that, with OpenFire, I can connect using this credentials/configuration.
I'm using Spark as my client application.
Thanks
I'd expect that your ldap_rootdn should actually look something like
cn=tempadm,dc=server2000,dc=tek2000,dc=com
rather than the format you've used there.
I've seen it before where you actually must supply the LDAP:// before the actual path... so for this example
LDAP://cn=tempadm,dc=server2000,dc=tek2000,dc=com
And I've also seen it before where LDAP needed to be in all caps. I don't know anything about what you're using, but just in the time I've used LDAP those were a few things I've discovered.