Previously, if I type !cp <tab> the last cp command would come automatically. However, something has changed recently with my system.
I am unable to get a autocomplete !cp <tab> now. Where can I look for the changes ? Any idea what might have caused it ?
Hi!
I rekon you are missing histexpand option in your SHELLOPTS variable. The command you are looking for is
As histexpand is on by default, you should have a look at /etc/bash.bashrc and ~/.bashrc - look for shopt command.
Say, I want to move into dir library from current dir, on prompt if I type in
cd li
if it is followed by pressing 'Tab' key then complete dir name appears.
Would there anyone know, how we can make into effect this path autocompletion?
I am using 'ksh'. (5 Replies)
As the title says, I'm unable to ssh out of boxA to other nodes on the network. I am running 5.2 ML6. The version of ssh client is:
openssh.base.client 4.1.0.5301 COMMITTED Open Secure Shell Commands
The program installed okay with no errors.
When I try to ssh to another node on... (6 Replies)
Discussion started by: outtacontrol
6 Replies
3. Forum Support Area for Unregistered Users & Account Problems
Unable to Activate
ErnieS
email id removed
It just keeps sending me round in circles?
And in true Unix fashion as soon as I post this it does.... Please ignore
Thanks (1 Reply)
My client`s system is an AIX 4.2 and using the Kron shell. I was just wondering if it is possible to have the prompt autocompletion enabled on it without changing shell version.
By autocompletion, I mean to automatically complete the filenames or directories we type in using the Tab key. (2 Replies)
Hello dear community!
I've recently written a BASH function for auto completion of options. It works like following: if a user types a command and then an argument to this command which starts with "^-" and then presses TAB, then 'user_command --help (or -h)' is invoked and possible options are... (0 Replies)
I've posted about this before, but only recently narrowed the problem down to a specific cause.
Ok, first of all, the behavior:
It occurs when autocompletion brings up its list (not when there is only a single option). Basically, if I were to type, say,
cd ~/<TAB>
I would get something... (2 Replies)
Hi ,
On one of my solaris server I getan error whenever I use df -h as below.
df: unknown option: h
Usage: df
But this works on other servers.Please advise.
Regards,
VN (2 Replies)
Hi,
when I try to do " su - oradba" on my solaris box i get following error:
Please let me know the proabbale cause and resolution to this.
=====================
su - oradba
Enter Local Unix Password:
Login Error
-----------
The user 'oradba' is not allowed to log direct into this host.... (2 Replies)
Discussion started by: Laxxi
2 Replies
9. Forum Support Area for Unregistered Users & Account Problems
Hi Mater,
I get a message from your website Forums Rules that China user can't log in this forums for security reason. However, I am a new user for UNIX, and I have never touch the UNIX system before. So I think I am a friendly man for your rules. Critically, I need everyone help in this forums... (0 Replies)
Hi,
I'm using a complete command in tcsh this way, the echo cmd is just for the example :
complete echo 'p/1/`mypythonalias`/'
And that works just great returning what the python script is printing out.
However I want to give an argument to the python script to narrow down its results... (5 Replies)
Discussion started by: chistof
5 Replies
LEARN ABOUT OPENSOLARIS
mms_ainit
mms_init(3MMS) Media Management System Library Functions mms_init(3MMS)NAME
mms_init, mms_ainit, mms_goodbye, mms_agoodbye, mms_hello - manage sessions between the client application and MMS
SYNOPSIS
cc [ flag...] file... -lmms [ library...]
#include <mms_api.h>
int mms_init(void *session, int *version);
int mms_ainit(void *session, int *version,
void (*callbk)(void *arg));
int mms_hello(void *session, char *host, char *app, char *ai,
char *tag, char *pass);
int mms_goodbye(void *session, int force);
int mms_agoodbye(void *session, int force);
DESCRIPTION
The mms_init() function creates and initializes the data structure used by a client to communicate with the Media Management System (MMS)
synchronously. The mms_ainit() function creates and initializes the data structure used by a client to communicate with MMS asynchronously.
On successful completion, session contains the pointer to the data structure and version contains the MMS API library version. If non-null,
the callbk argument specifies which client routine to invoke if the asynchronous session shuts down.
In the following functions, session is a session pointer returned by either mms_init() or mms_ainit(). The format of the client's logging
routine is the following:
void logfunctionname(char *, char *)
The first argument is the prefix and the second is the API error message of the error encountered.
The mms_hello() function establishes the session connection between the client and MMS. The client specifies the host where MM is running
(host), application name (app), application instance (ai), application tag (tag), and application password (pass) to use to connect with
MMS. These values must be present in MMS for the connection to be allowed.
The mms_goodbye() function shuts down a synchronous session between the client and MMS.
The mms_agoodbye() function shuts down an asynchronous session between the client and MMS. If force is set, no goodbye is sent to MM.
RETURN VALUES
Upon successful completion, MMS_API_OK is returned. If a function has a processing error, it returns an error code indicating the type of
error.
ERRORS
These functions will fail if:
MMS_API_ERR Unrecoverable internal processing error occurred.
MMS_API_NOT_ERR_RSP Response is not an error response.
MMS_API_SHUTDOWN Client has shut down API.
MMS_ASYNC_API_FAILURE Reader thread unable to obtain reader mutex.
MMS_CFG_FILE_ERR Unable to open watcher daemon's network configuration file.
MMS_DUPLICATE_REG Event is already registered.
MMS_E_CONNECT_ERR Failed to connect to MMS.
MMS_E_INVALID_RESPONSE Invalid MMS response to command.
MMS_E_NET_IO_ERR Connection failure to MMS.
MMS_E_SYNTAX_ERR MMS response contained a syntax error.
MMS_ERR_BIAS Unknown Error code.
MMS_EV_REG_FAILED MMS did not accept event registration.
MMS_EV_UNREG_FAILED MMS did not accept event unregistration.
MMS_INVALID_RSP Unknown response type received.
MMS_MALLOC_ERROR Unable to allocate required space.
MMS_MISSING_TASKID Unable to find task ID in response.
MMS_SELECT_ERROR Select system call failed.
MMS_TRACE_FAILURE Unable to open API's trace file.
MMS_WRONG_API_MODE API session does not support this API command.
MMS_WRONG_TASKID Wrong task ID found for accept response.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Uncommitted |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO libmms(3LIB), mms_rsp_type(3MMS), mms_send_cmd(3MMS), attributes(5)SunOS 5.11 28 Oct 2008 mms_init(3MMS)