I have a question about expanding shell variables. Given the following piece of script:
a="Some text"
b="Other text"
for i in a b
do
string1=$i
echo $string1 --> returns 'a'
string2=EXPRESSION_WITH_$i
echo $string2 --> returns 'Some text'
done
... (2 Replies)
I'm new to UNIX. I have to run executables often, and they all have a common prefix "prefix_". Now I'm wondering if I can make an alias where I can type run xyz that will then execute "./prefix_xyz" ?
Thanks in advance. (1 Reply)
I'm having a little trouble with a Solaris package build/install.
I have the following entries in my prototype file...
# Interfaces file - all versions installed and auto linked to installation type...
f none $OPTDIR/config/interfaces.DEV 0444 $OWNER $GROUP
f none... (0 Replies)
Hi all,
I have a series of directories which i open regularly. I want create an alias so that i can pass the direcotry name to alias and then this commands makes Cd to the path i need. COuld you please help on how to create an alias
ex of what i am trying but couldn't succeeded
#alias... (1 Reply)
If one:
$ find -name 'some expression' -type f > newfile
and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory.
I am... (3 Replies)
I am trying to turn this into an alias with no luck. I would then like to put the alias into my bashrc file. I know awk is very picky about quotes. I have tried every version of quotes, single quotes, double quotes, and backslashes that I can think of.
VAR=$(xrandr | awk '$2=="connected"{s=$1}... (3 Replies)
Hi Guys,
aliase uniq get ut=XXX anistr|availyStus|oratate|uniqueid
I want to create aliase but i want xxx as variable.....
run like this
uniq ak123
uniq ak324
uniq ak123
End of the story i want to use variable in aliase command (5 Replies)
s=`awk '{ print $0}' /Applications/Relink.app/z_cloudline.txt`
sed -n '"$s"' /var/mobile/Library/iFile/Bookmarks.plist > /var/mobile/originalip.txt
What is the problem with that code ?
With variable it only outputs:
sed: -e expression #1, char 1: unknown command: `"'
If I use the... (3 Replies)
Heyas
I'm trying to give some information on used variables.
While the first two work fine, the ones starting with a glob (is that the proper term?) fail.
echo ${!TUI_*} ${!RET_*} ${!*_CLI} ${!*\_GUI}
bash: ${!*_CLI}: bad substitution
Same with @ or have them escaped.
I found no... (2 Replies)
I have also some difficulty calling sed to change a word in a file.
sed -i 's/docTitl/Outline ${docTitl}/g' $ofln
Moved to new thread, since it is a different question (3 Replies)
Discussion started by: Danette
3 Replies
LEARN ABOUT ULTRIX
ccr
ccr(8) System Manager's Manual ccr(8)Name
ccr - remote console carrier requester
Syntax
ccr [ options ] node
Description
The command establishes a logical connection between your ULTRIX system and the console carrier server on a remote system. enables your
terminal to act as the console for a remote unattended system. For example, your terminal can act as the console for a Digital Ethernet
Communications Server (DECSA) and its resident software. The node is the name or address of the target node. A node name consists of from
one to six alphanumeric characters. A node address consist of two decimal integers (n.n), where the first indicates the network number
(1-63), and the second indicates the node address (1-1023).
You can use to force a crash if a server node becomes unresponsive. To determine how to force a crash, see the documentation for the
respective server product.
The requirements for using are as follows:
o The host node (that is, your local ULTRIX node) and the remote node must be on the same Ethernet.
o If your server product is a DECSA, the console carrier server image (plutocc.sys) and its loader file (plutowl.sys) must be located in
on your ULTRIX node. The pluocc.sys and plutowl.sys files are not need, nor is any loading done for other servers. For more details,
see the installation guide for the particular server product.
<CTRL/D> exits from console carrier mode and terminates
Options-c Uses the specified circuit to connect to the target node.
-h Uses the specified address (next argument) as the Ethernet address of the target node.
-n Uses the next argument as the target node ID.
-p Uses the specified service password (next arguments) in accessing the target node.
Examples
# /etc/ccr -c qna-0 -n dallas <RET>
ccr: Remote console reserved
.
.
.
<CTRL/D>
ccr: Remote console released
#
Restrictions
You must have superuser privileges to run
Diagnostics
The command can return the following diagnostic messages:
ccr: Remote console reserved
The command has successfully connected to the remote console server and your terminal is now capable of acting as a console for the remote
node.
ccr: Remote console released
Your connection with the remote console server has been terminated and you are no longer in console carrier mode.
ccr: Remote console already in use
The remote console server that you are attempting to connect to is already reserved by another user.
ccr: Permission denied
You do not have the necessary privileges to run (You must be a superuser.)
ccr: Hardware address required
The command is unable to locate the hardware address of the remote node to which you are attempting to connect. A remote node's hardware
address must be defined either in the command line, or in its nodes database entry. (Nodes database entries are defined with the command.)
ccr: No node entry in database
The command does not recognize the remote node to which you are attempting to connect, since the node-id that you specified is not defined
in the nodes database. (Nodes database entries are defined with the command.)
Files
Console carrier server image
Console carrier server loader
See Alsoaddnode(8), getnode(8), load(8), remnode(8), trigger(8)
Guide to Local Transport Servers
ccr(8)