Skip to content

Instantly share code, notes, and snippets.

View osmano807's full-sized avatar

Joaquim Pedro França Simão osmano807

View GitHub Profile
@osmano807
osmano807 / inittab
Created October 17, 2011 20:45 — forked from anonymous/gist:1293739
inittab arch linux (gdm)
# cat /etc/inittab
#
# /etc/inittab
#
# Runlevels:
# 0 Halt
# 1(S) Single-user
# 2 Not used
# 3 Multi-user
#!/usr/bin/expect -f
# Expect script to supply root/admin password for remote ssh server
# and execute command.
# This script needs three argument to(s) connect to remote server:
# password = Password of remote UNIX server, for root user.
# ipaddr = IP Addreess of remote UNIX server, no hostname
# scriptname = Path to remote script which will execute on remote server
# For example:
# ./sshlogin.exp password 192.168.1.11 who
# ------------------------------------------------------------------------