search for: command_string

Displaying 10 results from an estimated 10 matches for "command_string".

2008 Aug 26
5
undefined method
I''m trying to pass a method to another object/method as a variable. Example one, login 1 works just fine. def login1 @driver.Login(username, password) end However, if I try to pass "Login" to the driver as an argument (example two Login 2), I get "undefined method `command_string'' for #<SOAP::RPC::Driver:0x316dc28>" "Login" is a legit method for the SOAP::RPC::Driver. Do I need to do something to variable first? def login2 command_string = "Login" send_to_api(command_string) end def send_to_api(command_string) results = @driv...
2013 Jun 20
1
ProxyCommand that returns a socket
Hello, My usage of ProxyCommand just calls the nc utility with various parameters. That in turn after the initial setup just copies copies the data from the network socket to stdin/stdout. This useless coping can be avoided if ssh has an option to receive the socket from the proxy command. I suppose it can improve network error reporting as ssh would talk directly to the network socket rather
2006 Jul 13
1
Problems With IO.popen
...ged in as the user from the shell but when I run it from Rails, the task doesn''t run properly and the output is too truncated to see any errors. Anything special I need to worry about when running shell tasks this way? I have code like the following: logger.debug("Command String: #{command_string}") pipe = IO.popen(command_string, "w+") if pipe @tmailer_out = pipe.readlines end logger.debug("Mailer Out: #{@tmailer_out}") So, running ''command_string'' in the shell as the user ''mongrel'', it works fine. But the above only produces...
2004 Aug 06
2
improved error.log output --diff
...int command; if(strncmp("/admin/", uri, 7)) { - ERROR0("Internal error: admin request isn't"); + ERROR0("Internal error: admin request isn't, %s", client->con->ip); client_send_401(client); return; } command_string = uri + 7; - DEBUG1("Got command (%s)", command_string); + DEBUG1("Got command (%s,%s)", command_string, client->con->ip); command = admin_get_command(command_string); if(command < 0) { - ERROR1("Error parsing command string or unrecognis...
2004 Aug 26
2
OpenSSH PATCH: OpenCommand and CloseCommand
...g) (revision 25) +++ openssh-3.8p1/sshconnect.c (revision 25) @@ -55,6 +55,93 @@ static void warn_changed_key(Key *); /* + * Run the given command + */ +int +ssh_run_command(const char *type, const char *host, u_short port, const char *run_command) +{ + Buffer command; + const char *cp; + char *command_string; + pid_t pid; + char strport[NI_MAXSERV]; + int status; + + /* Convert the port number into a string. */ + snprintf(strport, sizeof strport, "%hu", port); + + /* + * Build the final command string in the buffer by making the + * appropriate substitutions to the given proxy command. + *...
2004 Aug 25
7
problem subclassing Wx::Menu
Hi folks I''m trying to make a class to make Wx::Menu easier for me to use and hide the constants and event-binding complexity. I''ve created a subclass of Wx::Menu, but whether I create my own append() method and call super(), or create a differently-named method and called append() from it, it seems to segfault. Sample attached, see line 20. Am I doing something stupid?
2016 Apr 27
0
Bourne shell deprecated?
...al SH(1) NAME sh -- command interpreter (shell) SYNOPSIS sh [-aCefnuvxIimqVEb] [+aCefnuvxIimqVEb] [-o option_name] [+o option_name] [command_file [argument ...]] sh -c [-aCefnuvxIimqVEb] [+aCefnuvxIimqVEb] [-o option_name] [+o option_name] command_string [command_name [argument ...]] sh -s [-aCefnuvxIimqVEb] [+aCefnuvxIimqVEb] [-o option_name] [+o option_name] [argument ...] DESCRIPTION sh is the standard command interpreter for the system. The current version of sh is in the process of being changed to conform with the...
2015 Sep 23
10
[Bug 2471] New: "match exec" prepends "exec" to its command
...onst char *cmd) { ... /* * Use "exec" to avoid "sh -c" processes on some platforms * (e.g. Solaris) */ xasprintf(&command_string, "exec %s", cmd); This is a problem, because it assumes the user's shell supports a particular command syntax, beyond just requiring that it support the "$SHELL -c <command>" convention. For example, if your shell is fish and you have e.g.: match exec "getent...
2016 Apr 27
5
Bourne shell deprecated?
>>> >>last OS I can think of with an actual Bourne shell was Solaris. >>> >> >>> >> >> > >> >The various *BSD's have & use the actual Bourne shell .... >> > >> > > Which one? All the BSDs I know of use the Almquist Shell except for > OpenBSD which uses a patched version of the Public Domain Korn Shell
2007 Mar 14
1
sshd gets stuck: select() in packet_read_seqnr waits indefinitely
Dear OpenSSH Portable sshd developers, I'm having a problem where sshd login sessions are occasionally (as often as once a day) getting stuck indefinitely. I enabled debug messages and got a backtrace of a stuck sshd, and I think I've found the bug. I wanted to run it by the list once before filing. sshd version: OpenSSH_4.2p1 FreeBSD-20050903, OpenSSL 0.9.7e-p1 25 Oct 2004