05-22-2006
it should be the /etc/motd file, type in whatever you want...
gP
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
How do I get my working directory always shown in the unix editor? i.e if I am now at /Home/abc/xyz/, I want to see this absolute path displayed ( and now only display when I type pwd).
thanks for the kind help.
Regrads (3 Replies)
Discussion started by: swchee
3 Replies
2. Shell Programming and Scripting
I am trying to obtain the file name (not including sub file name), however, I still cannot have the string output. :(
2 existed files at /tmp, AAA.new and BBB.last
Originally, the output result is needed to be shown as follows,
ex:
SYSTEM NEW LAST
===================
01 ... (8 Replies)
Discussion started by: Jones Lin
8 Replies
3. Solaris
Hi,
On solaris 10, t5120,
I don't understand what are the last 2 file systems
so last 2 file systems what are they, why are they getting shown and also confused why the swap is shown so many times and different size when I set it to 16 G at the time of installing solaris 10. ( rest... (3 Replies)
Discussion started by: upengan78
3 Replies
4. Solaris
Hello,
This is a 2 node sun cluster 3.2 on solaris 10(x86)
I am using an unique ~512M disk (c0d1) on each node and slice 6 on this disk for globaldevices. While everything looks like fine, the 'Fail' is bothering me.
@ tommy_sun1
@tommy_sun
-bash-3.00# cldevice refresh... (10 Replies)
Discussion started by: upengan78
10 Replies
5. UNIX for Advanced & Expert Users
Hello all,
I am facing a memory related issue on my linux that is CentOS 4.0. What I see as an output of top command, free command is that memory usage is almost 90% which is quite high without much load on the system. This is continuously showing 90% or so of memory usage with top or free... (2 Replies)
Discussion started by: radiatejava
2 Replies
6. IP Networking
I have a TCPIP server application (a Vendor package) which by default allows 10 connections. It provides a parameter to allow us to increase the maximum allowable connections in case it is needed. Intermittently this application is failing with maximum number of connections reached even when there... (1 Reply)
Discussion started by: AIX_user
1 Replies
7. Solaris
Hi
I am using the dd command on solaris 10 and the output doesn't include the MB/s statistic that you get in Linux,
is this not available or am I missing a switch of some sort
#dd if=/dev/urandom of=/perf_test/file.txt bs=1048576 count=500
0+500 records in
0+500 records out (2 Replies)
Discussion started by: eeisken
2 Replies
8. UNIX for Advanced & Expert Users
Heyas
I'm trying to read out a file which contains a variable and use that list to complete a bash command.
Difficult part on this is, that 2 (actualy 3) different lists are to be used, but the 'dynamic' ones from the external file dont work properly.
It only seems to work with the list... (2 Replies)
Discussion started by: sea
2 Replies
9. UNIX for Dummies Questions & Answers
I'm currently running a CUPS server and it shows the printers on other computers just fine, but after a while they disappear. I found out, that restarting /etc/init.d/cups-browsed fixes the problem (for about 15min).
When the printers disappear, the cups-browsed service is still running, so I... (0 Replies)
Discussion started by: Gajeela
0 Replies
10. Ubuntu
Hello,
I have just installed ubuntu 16.04 into my pc.
Locally everything works fine, it takes data from internet, I am also able to connect to apache in the same local network. When I try to reach from mobile network, I can't establish ssh, apache site is not displaying in my browser etc.
... (17 Replies)
Discussion started by: baris35
17 Replies
LEARN ABOUT SUSE
dislocate
DISLOCATE(1) General Commands Manual DISLOCATE(1)
NAME
Dislocate - disconnect and reconnect processes
SYNOPSIS
dislocate [ program args... ]
INTRODUCTION
Dislocate allows processes to be disconnected and reconnected to the terminal. Possible uses:
o You can disconnect a process from a terminal at work and reconnect from home, to continue working.
o After having your line be dropped due to noise, you can get back to your process without having to restart it from scratch.
o If you have a problem that you would like to show someone, you can set up the scenario at your own terminal, disconnect, walk
down the hall, and reconnect on another terminal.
o If you are in the middle of a great game (or whatever) that does not allow you to save, and someone else kicks you off the ter-
minal, you can disconnect, and reconnect later.
USAGE
When run with no arguments, Dislocate tells you about your disconnected processes and lets you reconnect to one. Otherwise, Dislocate runs
the named program along with any arguments.
By default, ^] is an escape that lets you talk to Dislocate itself. At that point, you can disconnect (by pressing ^D) or suspend Dislo-
cate (by pressing ^Z).
Any Tcl or Expect command is also acceptable at this point. For example, to insert the contents of a the file /etc/motd as if you had
typed it, say:
send -i $out [exec cat /etc/motd]
To send the numbers 1 to 100 in response to the prompt "next #", say:
for {set i 0} {$i<100} {incr i} {
expect -i $in "next #"
send -i $out "$i
"
}
Scripts can also be prepared and sourced in so that you don't have to type them on the spot.
Dislocate is actually just a simple Expect script. Feel free to make it do what you want it to do or just use Expect directly, without
going through Dislocate. Dislocate understands a few special arguments. These should appear before any program name. Each should be sep-
arated by whitespace. If the arguments themselves takes arguments, these should also be separated by whitespace.
The -escape flag sets the escape to whatever follows. The default escape is ^].
CAVEATS
This program was written by the author as an exercise to show that communicating with disconnected processes is easy. There are many fea-
tures that could be added, but that is not the intent of this program.
SEE ALSO
Tcl(3), libexpect(3)
"Exploring Expect: A Tcl-Based Toolkit for Automating Interactive Programs" by Don Libes, O'Reilly and Associates, January 1995.
AUTHOR
Don Libes, National Institute of Standards and Technology
7 October 1993 DISLOCATE(1)