Programming :: Automate Configuration Over RS-232?

Oct 18, 2010

Is it possible to make a script, which reads commands from a file one line after another, logs into a network device over a console connection(RS-232) and executes those commands wile sleeping 1s after each line? I have used minicom in order to connect over console line, but minicom is not scriptable as far as I know. There is a macro option, but this configuration file is almost 2000 lines long. Is such script possible at all?

View 7 Replies


ADVERTISEMENT

Programming :: Automate A Path Manipulation?

Jul 30, 2010

I want to share file locations with pc users (i'm a mac user). problem is: mac uses fslash, while pc files are indicated with baskslashes. I'm looking for a automation/plugin/shortcut/... to change them quick. I use paths a lot and share them with pc users, so manually it's to time consuming.

View 2 Replies View Related

Debian Programming :: Automate Command Line At Start-up

Jan 26, 2015

I'm trying to automate two command lines, a synclient and a syndaemon. They both work well if I type them manually in a terminal, but if I do a littre script to do this, tap to click and scrolling don't work anymore.

This is the script I wrote:
Code: Select all#!/bin/bash
synclient VertEdgeScroll=1
syndaemon -d -t -K
exit 0

So I made a chmod +x on the file, placed it in ~/bin then change PATH to include the directory. Then I added this file in "Startup applications".

The scripts run ok, mais it has a different effect than if I run the commands manually.

View 10 Replies View Related

Programming :: Automate Copy And Paste Of Files From The Internet?

Jul 28, 2010

Here is what I currently do and want to automate:

1) I manually enter a particular web site address in the browser.

2) When the page displays on my machine, it shows a number of links I need to visit, one after the other.

3) Each of these links display another page (file) from which I "cut and paste" information. I do this by highlighting manually the wanted info, click "copy" then select an open file on my computer, select "undo" if necessary to remove any previous content, click "paste" and then "save".

4) I then call a Yabasic program that reads the saved file and trims unwanted info.

5) At the completion of the Yabasic program, I click the web page tag, click the "back" button to return to the first page (since I am in the second) and click the next link in this first page till all links have been visited.

6) visit the next known web site and repeat 1 to 5

In an automated program, what I need to do is:

1) Visit the known page of the web site showing the links
2) save the page showing the links (the first page)
3) make a list of those links
4) visit each link one after the other and save its page from which I will programmatically (Yabasic) select info.
5) repeat 1 to 4

I can do this in "Yabasic" (which can issue Linux commands) or PHP although I do not know PHP much.the purpose of this is to associate towns and cities of the world with their respective political/geographical divisions and their respective time zone. This has to be done often because that data changes regularly.

View 3 Replies View Related

Programming :: Automate Periodical Activities In A Website (client Side)?

Jan 12, 2011

automate daily routines in a website. The things what I should do is to:

- log in
- click on HTML objects (I think I have to trigger the JavaScript onclick event)

Code:

<a href="http://www.xtremetop100.com/in.php?site=11111111" target="_blank" class="account_links">
<img src="/resource/bla/bla/vote/xtop100.gif" border="0"/>
</a>

(This is an image what I have to click on, after it I will receive a reward, then I have to wait 12 hours to benefit from it again.) My first idea was that to code it in C++, and I have searched the internet for the appropriate C++ headers, but I did not find any. So as you can see its not a concrete programming question, my main question is that, in what way could I do the above mentioned things.

View 4 Replies View Related

Programming :: Automate The Password Prompt Required For Sudo Commands?

May 31, 2011

I have written a script to run commands on remote servers, it is working fine. But when I am running "sudo commands" on the remote servers, it asks for me password after prompting for ssh password. I am unable to automate this password prompt (which is just after ssh password prompt). This is the function I am using to provide passwords

Code:

pass ()
{
cd $DIR/"$dt1"_"$dt"
/usr/bin/perl << 'EOF'
use strict;

[code]....

I want the same function to be used , when it expects for sudo passwords for any of the below lines:

Code:

[sudo] password for vikas: orPassword: This is my "cmd" file passed in pass () function.

Code:

ssh -t -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no 192.168.1.100 "bash rcmds"

This is my script output

Quote:

[vikas@box1 ~]$ ./rscript.sh
++ rm -rf /home/vikas/May_31
++ mkdir -p /home/vikas/May_31
++ set +x

[code]....

how to automate the password prompt required for sudo commands.

View 8 Replies View Related

Fedora :: How To Automate Eog Reload

Dec 5, 2010

eog notices when a PNG file changes, and offers to reload it.But it does not reload until I move the mouse over to the monitor where I stuck eog, and click ReloadHow can I make eog just reload automatically without asking -- the way evince does, for PDFs?

View 1 Replies View Related

Debian :: How To Automate A Service

Apr 6, 2011

i am trying to automate a service but i dont know how to do it. I am automating a library system and there are services that have to start at the startup (during boot). How will i make this service to run at the startup in debian?

View 1 Replies View Related

General :: Automate Backups Over SSH On A Desktop?

Jun 7, 2011

I currently have a setup which allows me to connect to all computers on my home network via SSH and RSA keys. I'm very security-conscious, so all of my keys are passphrase protected. I'd like to essentially set something up where I'm running Unison on a cron job to back up to a file server on my network, which we'll call timmy. I've noticed that the first time I try to use a key on my Ubuntu laptop teeks, I get a dialog which pops up asking me to type in my key passphrase. I've heard that for servers needing to make automated backups like this that one should use ssh-agent to ask for the key passphrase on login/server start. How can I set this up on teeks?

I'd essentially like to have the following happen:When I boot and come into the OS, prompt visually for the passphrase as is done when I first use a key.If I SSH into this computer (as it's internet-facing) and I haven't provided the SSH passphrase yet, then prompt for it. (Sometimes, I might need to remotely reboot the machine over SSH, so I'll be SSH'ing into it after it reboots and I'd like to be able to authenticate the key without having to VNC in and do it manually.)

View 2 Replies View Related

Red Hat / Fedora :: Automate Testing Of Web Login?

Jan 20, 2011

I am trying to automate testing of logon into a web application using "curl". as the first step i am doing below to see if i can login to the app from command linecurl --verbose --user usernameassword my.url.combut it does not seem to be working. from the output that i get it seems it only gets to the page where to enter my username/password. but does not get past that stage. below are the first few lines from the output

curl --verbose --user administrator my.url.com
Enter host password for user 'administrator':
* About to connect() to my.url.com port 7790

[code]...

View 3 Replies View Related

General :: Automate Tasks In Linux

Feb 10, 2011

I'd like to get the information about automatization of the tasks in Linux, more specifically in Fedora with minimal installation (without graphical interface and so on).The application (developed in C) needs to be started automatically when the computer is initialized. I've read about cron but I guess it's not a solution in this case because whenever computer starts the application must run once.I also have read about the/etc/ rc.local file but I made some tests changing it and they didn't work, the computer starts asking me the login and password but nothing run after that.The inittab was the same. In this way, someone know how to initialize an application developed in C when the computer starts?

View 6 Replies View Related

General :: Automate A Definition Process?

May 24, 2011

I would like to automate a definition process. I have 11,581 to define. :|

I would like to read each word, copy the definition(s) and append it next or below the word or save definitions to file.

The word list has one word per line.

Python script?
Bash?
Perl?

Its an interesting project but I cant seem to figure it out. Lack of programming skills.

View 2 Replies View Related

General :: How To Automate Log Deletion Process

Feb 25, 2010

I have RHEL Machine in production server where we gets usual alerts that logs filling up spaces. We archive those logs but in case it grows maximum we delete the old ones. Any idea how can we autiomate the process.

View 1 Replies View Related

General :: Automate Archiving Of Log Files Using Tar?

Mar 29, 2011

I need to tar this logs, but i dont how to make it simplier to me. Everyday there are created this five logs. I need to make five tar files from every day from this files at the end of the month

For example

Till now i have tar it manualy (copied every file)

View 2 Replies View Related

Software :: Automate Interactive Cli Installs?

Nov 22, 2010

can provide recommendations on any projects that can fully automate the install process of an interactive application. I am doing installs of applications such as websense and they are all interactive. I would like to automate all interactive installs in my environment. I did find the following: [URL]

View 1 Replies View Related

Ubuntu Servers :: Way To Automate The Server Login?

Feb 5, 2010

just installed server edition... and is there a way to automate the server login?or through ssh because i want to get rid of the monitor i have plugged into it

View 1 Replies View Related

Ubuntu :: Automate Or Make An Alias Of This Task?

Mar 8, 2010

I want an alias to move ~/.sportstracker to ~/Documents/Software/SportsTracker_4.1.1 and then zip it and name the zip file like this SportsTrackerBackup_yyyy-mm-dd (example: SportsTrackerBackup_2010-03-08)Note: I don't mind how the archive is compressed, 7z, rar, zip, tar, etc. Although the higher the compression the better

View 9 Replies View Related

Ubuntu :: Automate Opening Of Nautilus Windows?

Jul 6, 2010

Every time I start Ubuntu, to enable copying files, I open two Nautilus windows and I then have to drag those windows into the places on the desktop where I'd like them to be. It seems silly to manually do this 800 times a year! Is there any way to automate this? Would a script be able to achieve this?

View 3 Replies View Related

Ubuntu Networking :: Automate Ifconfig Command?

Nov 8, 2010

I manage to get Ethernet over Firewire working between my Windows XP desktop and my Ubuntu 10.10 laptop.However, I am getting tired of having to manually issue the ifconfig command every time.How can I automate it so that the command is done at bootup?

View 1 Replies View Related

Ubuntu :: How To Fully Automate A Minecraft Server

Jun 29, 2011

I'm trying to fully automate a Minecraft server, and I decided to use Ubuntu 11.04 on this computer. The computer I'm using for it is an old computer (it's the old family PC, it's about 5 years old (and running amazingly now that I've formatted the hard drive (compared to how it used to run))) so it won't run the Unix environment (or something like that) and runs the Gnome environment instead.

Anyways; the server auto-starts when my computer turns on (my computer also automatically turns on). Now all I need to do is have my computer auto-shutdown at 12:00AM as well as enter the command "stop" into the running terminal. I plan to later add more commands (such as automatically welcoming people to the server when they connect, but that's not important right now and I'll likely be able to figure out if I can get this working).

This is the command I'm using to shutdown the computer:

sudo shutdown -P 24:00

However, it doesn't work. First of all, I need to enter my password, so I need some way to have the shell file enter my password for me whenever the terminal asks for it. Second of all, it just plan doesn't work, even if I enter my password (like, the countdown doesn't appear). As for entering commands into the terminal, the only way I can think of is:echo "stop" But the problem is that doesn't work because it wont enter into the running terminal (and I don't know how to do that).

View 9 Replies View Related

General :: Automate Sourcing .bashrc When Su - To Root

Oct 16, 2010

I need to source the my /home/me/.bashrc file every time I "su -" to root. Is there any way to automate this? I cannot edit any thing in the root's environment as it is shared by people.

View 7 Replies View Related

General :: Automate Ftp Session Without Bare Password Being Seen?

Mar 11, 2010

I need to ftp some files nightly from my linux box to an arbituary ftp server not controlled by me.

The ftp server admin has granted me an account for the purpose, but do not wish me to store the plain username or password in any script files for security reasons. How can I do that?

the wrong way would be:

Code:
$ cat my_script
open server_address
user plane_ftp_username plane_ftp_password
put a.txt

[Code].....

View 8 Replies View Related

General :: Automate Reboot And Possible Pending E2fsck's?

Apr 19, 2010

I have a heavily used file server that I want to restart, then if it requires e2fsck's on any volume to run them after it restarts. The only problem is that the server is rarely rebooted, and they said it might kernel panic because its been so long. I've heard there's a way to have it go past the kernel panic if it does happen, but I'm not sure how to do that or the other stuff.If it was a Windows server, I would schedule a shutdown with the force switch, and have the chkdsk's already scheduled for each volume on reboot. But for RHEL, I really don't know.I'm hoping this can be done, so that way I can have it kick off at say 7am, then when I get in at 8am it will probably be near the end of the e2fsck's so I can see what's going on.

View 11 Replies View Related

Software :: Automate Analysis Of Audio Recordings For Changes?

Sep 25, 2009

I have over 500 hours of audio recordings of my server room. There's a lot of background noise from the fans, but mostly it's constant. Is there a way to automate an analysis of these audio files (mp3 each 30 min) and display changes? Like frequency or decibel changes?

View 3 Replies View Related

General :: Automate Computer To Power Off (and On Preferably) Under Certain Circumstances?

Dec 31, 2010

I've been using Windows Home Server as a Backup Appliance, Media Server and Share Server at home for some time. I decided it was costing me allot of juice so very early on added the "Lights Out" add-on to ensure it was only running as and when needed.

I'm now looking to switch to a Linux based server and I'm looking for a similar tool/set of tools for advanced power management.

Now the question;

Anyone got any all-in-one suggestions (i.e with client parts for both Windows and Linux and a server part for the Linux server), or can anyone simply verify that I'll need to set-up all the individual bits for this myself separately?

View 4 Replies View Related

General :: Automate Sudo Su - User Command From A Script?

Feb 9, 2011

i want to automate sudo su - user command from a script...it will then ask for a password...how do i automate this?

View 3 Replies View Related

Ubuntu Servers :: Script To Automate Website Interaction?

Mar 21, 2010

Here is what I have. Everyday I go to 8 websites that require entry of a username and password. When I've logged in, I select exactly the same info using the sites navigation and specify a report generated by the site. I then tell the site to save as an excel file and save it as an existing spreadsheet, 8 times for eight different files

How can I make this more direct? Can a script be written that provides username and password, selects the parameters I want, saves the spreadsheet and goes to the next site to repeat the process and save under a different name?

This would be used in a Windows XP/IE 7/corporate environment.

View 7 Replies View Related

Ubuntu Installation :: Automate Installing A Standard Set Of Packages?

May 12, 2010

My upgrade route with Ubuntu is to do a complete fresh install - then reacquire all my favorite applications and packages using a combination of Add/Remove and Synaptic. This is a time-consuming process, and I generally forget several packages the first time through.Is it possible to automate the packages (and/or applications installation so that I get everything rebuilt for the new os in a single pass?

View 9 Replies View Related

Ubuntu Servers :: Automate Grub - Send Commands To It Via Ssh?

Sep 9, 2010

I have a server that is triple boot and the server is headless and accessed using ssh. So is there a way to tell grub before hand what os to choose or send commands to grub (of course I get rid of the timeout) to pick a different os other than the default one. Any ideas? I already know this is bad practice to have multiple os's on the same machine to be used as a server, but what about selecting a different kernel at start up.

View 7 Replies View Related

Ubuntu Networking :: Automate A Dhclient Call At Startup?

Nov 28, 2010

For test purposes I'm running Ubuntu 10.10 from a USB stick with a USB WLAN stick.The system finds the WLAN router and acquires an IP6 address, but no IP4 address.With "dhclient wlan0" though it does get an IP4 address and connects o.k.How do I setup the system so that this dhclient call is done by the system at startup (or whenever it is necessary)?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved