09-28-2004
Have you looked into using screen for this?
man screen
on console #1, type screen, load an app, whichever you want. Then press Ctrl-A and hit the d key.
this will detach you from the screen, placing you back on the console.
type screen -list, to see the detached screens. you can have many, note the number.
type screen -R <screen number> to reattach.
can name the screens, send commands, and more.
Now, once the screen is detached, you can ssh into the the box running console 1 (with screen), from console 2, and load that screen onto console 2. Picking right up where you left off at.
Last edited by locustfurnace; 09-28-2004 at 03:32 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm new to unix and I have a fairly simple problem:
Lets say I am in a specific directory and I run the command: "dirs" ,
I get an output of all the folders that i pushed into the stack (as expected),
buut,
when when I create a script (called test):
#! /bin/csh
dirs
and then i run:... (2 Replies)
Discussion started by: owijust
2 Replies
2. UNIX for Advanced & Expert Users
Hello All,
After login to the server we are explicitly calling /usr/local/bin/bash to activate bash shell properly.
But since commands are not executing properly so I think it is not initialized well. I am facing following problems:
1) If I want to have a look on a particular file using tail... (6 Replies)
Discussion started by: abhishek0071
6 Replies
3. Programming
Hi,
-How can I get number of files, cpu usage (percentage), memory usage, disk usage, ...etc, using C program ... I can use unix command ( system(command) )but I want the value to be returned back to my C program to use it in my code? How can I do that?
Thanks in advance ... (2 Replies)
Discussion started by: zainab
2 Replies
4. Programming
Hi guys,
I know using system() we can run unix commands but the problem is, I can't get any returns with the system(). I am returning stuff from my shell scripts that I need to be able to read from my C code.
Anybody has cure to this problem? :))
Thanks (2 Replies)
Discussion started by: alirezan
2 Replies
5. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
6. UNIX for Dummies Questions & Answers
hi!
how do i run 2 command from the same line
e.g: 'which screen' and then ls -la 'which screen' (4 Replies)
Discussion started by: rdns
4 Replies
7. Shell Programming and Scripting
Hello
I need to run some sed commands but it involves "/" in the substitute or delete, any ideas how I get round the problem.
Example:
cat file1.txt | sed -e '/</Header>/d' > file2.txt
This errors due to the forward slash before the Header text.
Thanks (3 Replies)
Discussion started by: Dolph
3 Replies
8. Shell Programming and Scripting
I am trying to assign a command to a variable and use it. I have tried every possible quoting variation except the correct one. :confused: Here is an example:
CMD="grep description $i | grep "::""
$CMD | nawk ...Thanks in advance for you help. (1 Reply)
Discussion started by: aschera
1 Replies
9. Shell Programming and Scripting
I have a small question may be this will be discussed before
I have two files file1 and file2 with huge data and I am running the commands as
cat file1 |sort &
cat file2 |sort &
If the session is got disconnected or logout will this command run in background,
or shall we use nohup (3 Replies)
Discussion started by: morbid_angel
3 Replies
10. Shell Programming and Scripting
How to run several bash commands put in bash command line without needing and requiring a script file.
Because I'm actually a windows guy and new here so for illustration is sort of :
$ bash "echo ${PATH} & echo have a nice day!"
will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies
LEARN ABOUT FREEBSD
conscontrol
CONSCONTROL(8) BSD System Manager's Manual CONSCONTROL(8)
NAME
conscontrol -- control physical console devices
SYNOPSIS
conscontrol [list]
conscontrol mute on | off
conscontrol add | delete console
conscontrol set | unset console
DESCRIPTION
The conscontrol utility is used to examine and modify the physical devices which back the virtual console devices. If no arguments (or only
the list command) are specified, the current console settings are shown.
There are two types of logical consoles; a high level console which is represented by /dev/console, and a low level console. The low level
console is used for kernel printf(9) and ddb(4) debugger support, while the high level console is used by user programs like syslogd(8).
Multiple device support is implemented only for the low level console; the high level console is set to the first device in the console list.
Multiple console support may be invoked by passing the kernel the -D flag from the boot loader, or by using conscontrol to change the list of
console devices after the system has booted.
The following options are available:
add | delete console
Add or delete a physical device from the logical console. The device must support low-level console operations. Adding a device
will place it at the front of the list of console devices; the first device is used for the high level console.
The console argument is the name of a console device in /dev; the name of the directory may be omitted.
mute on | off
Change the state of console muting. All console output is suppressed when console muting is on.
set | unset console
Set or unset the virtual console. When unset, output from the system, such as the kernel printf(9), always goes out to the real main
console. When set, it goes to another. This is an interface to the tty ioctl TIOCCONS.
SEE ALSO
sio(4), syscons(4), tty(4), vt(4), boot(8), loader(8)
HISTORY
The conscontrol utility first appeared in FreeBSD 5.0.
AUTHORS
Jonathan Lemon
BSD
April 14, 2011 BSD