I want to be able to run a script on one server, that will spawn another shell which runs some commands on another server..
I have seen some code that may help - but I cant get it working as below:
spawn /usr/bin/ksh
send "telnet x <port_no>\r"
expect "Enter command: "
send "LOGIN:x:x;... (2 Replies)
Hi ,
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)
I need to know these UNIX Shell Commands with the appropriate parameters.
List the files in current directory beginning with extension .har. (% ls .har)
View text file "hosts.copy" which spans multiple screens.
Execute the batch file "tapeeject.bat"
Copy all files from current... (2 Replies)
I am doing this simple script using c shell and korn shell. The commands I use are fgrep , ls, and also some redirecting. Is there any difference in using both of these commands in c shell and korn shell? Thanks and sorry for the stupid question. (1 Reply)
Hey,
I have two seperate files with a column og data about item 277 and 289 in each. Fx:
277
-1.34534
-0.98272
0.12293
etc
and
289
-4.58493
9.88273
9.33829
etc.
How do i get the second input for item 277 (i.e. -.098272) and add or subtract it from the similar second input from... (2 Replies)
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)
Hi:confused:,
I have a file that contains :
+-----------------------------------------------------------------------------+
LABEL: super1_fix
EFIX FILES: 1
ABSTRACT: epkg for touch command
PRE-REQUISITES: no
PACKAGER VERSION: 7
REBOOT REQUIRED: no
BUILD BOOT... (4 Replies)
Hi,
I am working on HP-AUX Unix machine.
I need to find a file whether it has been updated in 15 minutes.
Please help me with the command.
I am using Ksh (1 Reply)
basically i'm tired of hitting the left arrow a few dozen times when correcting a mistake or modifying a history command
i'd like to use vim style key shortcuts while on the command line so that a 55 moves the cursor 55 places to the left...
and i want all the other vi goodies, search of... (3 Replies)
I have a question:
Where would I put the Command line (of any command) so that it executes every time I log on? Where would I put it if I want it to execute every time I start a new shell? (5 Replies)
Discussion started by: Nabeel Nazir
5 Replies
LEARN ABOUT CENTOS
xmregistersegmentencoding
XmRegisterSegmentEncoding(library call) XmRegisterSegmentEncoding(library call)
NAME
XmRegisterSegmentEncoding -- A compound string function that registers a compound text encoding format for a specified font list element
tag
SYNOPSIS
#include <Xm/Xm.h>
char * XmRegisterSegmentEncoding(
char *fontlist_tag,
char *ct_encoding);
DESCRIPTION
XmRegisterSegmentEncoding registers a compound text encoding format with the specified font list element tag. The XmCvtXmStringToCT func-
tion uses this registry to map the font list tags of compound string segments to compound text encoding formats. Registering a font list
tag that already exists in the registry overwrites the original entry. You can unregister a font list tag by passing a NULL value for the
ct_encoding parameter.
fontlist_tag
Specifies the font list element tag to be registered. The tag must be a NULL-terminated ISO8859-1 string.
ct_encoding
Specifies the compound text character set to be used for segments with the font list tag. The value must be a NULL-terminated
ISO8859-1 string. A value of XmFONTLIST_DEFAULT_TAG maps the specified font list tag to the code set of the locale.
RETURN
Returns NULL for a new font list tag or the old ct_encoding value for an already registered font list tag. The application is responsible
for freeing the storage associated with the returned data (if any) by calling XtFree.
RELATED XmCvtXmStringToCT(3), XmFontList(3), XmMapSegmentEncoding(3), and XmString(3).
XmRegisterSegmentEncoding(library call)