What are you trying to achieve?

I tried the following just a while ago:

# echo "screen -R" >> .bashrc
# cat > .screenrc << EOF
> screen -t uptime 0 /usr/bin/ssh jumpserver
> screen -t another_session session_number command 
> EOF

 --
Greek Ordono 
vmlinuz|genunix|vmkernel admin
myppa: launchpad.net/~grexk/+archive/ppa 




________________________________
From: Ramil Galib <[email protected]>
To: [email protected]
Sent: Thursday, July 7, 2011 4:03:46 PM
Subject: [plug] Connect to server using ssh before gnome session

As part of the User Login time problem I'm solving,
my proposed solution is:
1. boot ubuntu in text mode
2. user logs-in in the terminal
3. system connects the user to the server thru ssh
(ssh to the server records the login sessions thereby computing the
total logins thru acct)
4. user inputs ssh credentials
5. system starts the gnome session

1 can be done in grub
can 3 and  5 be done using screen and scripts in .bashrc?

when I use screen ssh user@server
the user still needs to press C-a c to create another screen session
and type in there startx
can this be done in one batch only without user intervention?

hope you can help

TIA
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to