quinta-feira, 16 de outubro de 2014

How-To: Install Expect under Windows


Expect

Expect is a program to automate interactions with programs that expose a text terminal interface.

http://en.wikipedia.org/wiki/Expect



How-To install Expect under Windows:
 
Download ActiveTcl: (must be 32 bits!!!)
http://www.activestate.com/activetcl/downloads


C:\Tcl\bin>teacup.exe install Expect


And that´s it....

---
Lets Test it now:

Create a file test.exp



#!/bin/sh
# \
exec tclsh "$0"  ${1+"$@"}

# This is required to declare that we will use Expect
package require Expect

puts "\n\nI am Alive\n\n"





And Run:
C:\Tcl\bin>tclsh.exe d:\Desktop\test.exp

Should be running :)

terça-feira, 30 de setembro de 2014


Oracle VM (VirtualBox Version 4.3.12)

  •  Using Shared Folders (Host Windows 7, VM Linux Mint 17)
With shared folders, you can easily share files among virtual machines and the host computer.

To set up one shared folder click: Settings -> Shared Folders -> Adds a new shared folder definition.













On the Virtual Machine:
  • open a terminal and hit: sudo mount -t vboxsf SVN /media/SVN
  • can create a symbolic link: ln -s /media/SVN svn
  • check under home: ls -la | grep svn, should be:
  lrwxrwxrwx  1 root  root     14 Jul  4 12:30 svn -> /media/sf_SVN/