Spawn Not Found


 
Thread Tools Search this Thread
Operating Systems Solaris Spawn Not Found
# 1  
Old 12-06-2009
Spawn Not Found

I need to run the spawn command but when I typed it in, I got
"ksh: spawn: not found".

So, I downloaded spawn-fcgi but it required to be compiled first. The compile failed when I tried it. I need a copy that's ready to be used.

Unix system info:
OS: Sun Solaris 2.8
Shell: ksh

Does anyone know where I can download spawn for my system?
Thanks.
# 2  
Old 12-07-2009
Why did the compile fail? Did you get any errors?
# 3  
Old 12-07-2009
And what is this spawn command you are looking for doing ? Where are you using it ?
# 4  
Old 12-07-2009
Quote:
Originally Posted by jlliagre
And what is this spawn command you are looking for doing ? Where are you using it ?
spawn(8) spawn(8)




NAME
spawn - Postfix external command spawner


SYNOPSIS
spawn [generic Postfix daemon options] command_attributes...


DESCRIPTION
The spawn(8) daemon provides the Postfix equivalent of inetd. It lis-
tens on a port as specified in the Postfix master.cf file and spawns an
external command whenever a connection is established. The connection
can be made over local IPC (such as UNIX-domain sockets) or over non-
local IPC (such as TCP sockets). The command's standard input, output
and error streams are connected directly to the communication endpoint.

This daemon expects to be run from the master(8) process manager.


COMMAND ATTRIBUTE SYNTAX
The external command attributes are given in the master.cf file at the
end of a service definition. The syntax is as follows:

user=username (required)

user=username:groupname
The external command is executed with the rights of the speci-
fied username. The software refuses to execute commands with
root privileges, or with the privileges of the mail system
owner. If groupname is specified, the corresponding group ID is
used instead of the group ID of username.

argv=command... (required)
The command to be executed. This must be specified as the last
command attribute. The command is executed directly, i.e. with-
out interpretation of shell meta characters by a shell command
interpreter.


BUGS
In order to enforce standard Postfix process resource controls, the
spawn(8) daemon runs only one external command at a time. As such, it
presents a noticeable overhead by wasting precious process resources.
The spawn(8) daemon is expected to be replaced by a more structural
solution.


DIAGNOSTICS
The spawn(8) daemon reports abnormal child exits. Problems are logged
to syslogd(8).


SECURITY
This program needs root privilege in order to execute external commands
as the specified user. It is therefore security sensitive. However the
spawn(8) daemon does not talk to the external command and thus is not
vulnerable to data-driven attacks.


CONFIGURATION PARAMETERS
Changes to main.cf are picked up automatically as spawn(8) processes
run for only a limited amount of time. Use the command "postfix reload"
to speed up a change.

The text below provides only a parameter summary. See postconf(5) for
more details including examples.

In the text below, transport is the first field of the entry in the
master.cf file.


RESOURCE AND RATE CONTROL
transport_time_limit ($command_time_limit)
The amount of time the command is allowed to run before it is
terminated.

Postfix 2.4 and later support a suffix that specifies the time
unit: s (seconds), m (minutes), h (hours), d (days), w (weeks).
The default time unit is seconds.


MISCELLANEOUS
config_directory (see 'postconf -d' output)
The default location of the Postfix main.cf and master.cf con-
figuration files.

daemon_timeout (18000s)
How much time a Postfix daemon process may take to handle a
request before it is terminated by a built-in watchdog timer.

export_environment (see 'postconf -d' output)
The list of environment variables that a Postfix process will
export to non-Postfix processes.

ipc_timeout (3600s)
The time limit for sending or receiving information over an
internal communication channel.

mail_owner (postfix)
The UNIX system account that owns the Postfix queue and most
Postfix daemon processes.

max_idle (100s)
The maximum amount of time that an idle Postfix daemon process
waits for an incoming connection before terminating voluntarily.

max_use (100)
The maximal number of incoming connections that a Postfix daemon
process will service before terminating voluntarily.

process_id (read-only)
The process ID of a Postfix command or daemon process.

process_name (read-only)
The process name of a Postfix command or daemon process.

queue_directory (see 'postconf -d' output)
The location of the Postfix top-level queue directory.

syslog_facility (mail)
The syslog facility of Postfix logging.

syslog_name (postfix)
The mail system name that is prepended to the process name in
syslog records, so that "smtpd" becomes, for example, "post-
fix/smtpd".


SEE ALSO
postconf(5), configuration parameters
master(8), process manager
syslogd(8), system logging
# 5  
Old 12-07-2009
Incredible, you might be right but as april downloaded and tried to compile a quite different spawn command, please let him/her answer to these questions.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Spawn command not found!!!

Hi, I am writing a script to automate installation of java in shell script. #!/bin/sh #!/usr/bin/expect ls -la | grep jdk* | rpm -ivh ./jdk*.rpm alternatives --install /usr/bin/java java /usr/java/jdk1.7.0_71/bin/java 2 spawn alternatives --config java expect "Enter to keep the current... (5 Replies)
Discussion started by: boby.kumar
5 Replies

2. Red Hat

Spawn: command not found

Dear Concern, I want to run following script in RHEL 6.3. $ cat sftp_upload.sh #!/usr/bin/expect spawn sftp -oPort=434 bkashtopup@172.16.252.59 expect "*?assword:*" send "bkashtopup1234\n" send "lcd /BI/application/report/script/daily/daily_bkash_itopup_detail\r" expect sftp> ... (3 Replies)
Discussion started by: makauser
3 Replies

3. Red Hat

Spawn: Command not found

Hi all, I want to run the following command from my main prompt : # spawn bash but I get the following error: spawn: Command not found. For this to work , I first have to go into expect. #expect expect1.1>spawn bash spawn bash 564 expect1.2> Is there any way I can skip the... (2 Replies)
Discussion started by: Junaid Subhani
2 Replies

4. Shell Programming and Scripting

Help with spawn.. newbie to shell

Hi, I have a problem with the spawn execution with expect.. i have done the code for expect in a separate file and i am calling the this execution from the bash script.. as given below.. -bash-4.1$ cat main.sh #!/usr/bin/bash ./spawn.exp ========================== -bash-4.1$ cat... (2 Replies)
Discussion started by: satishkumar432
2 Replies

5. Shell Programming and Scripting

Spawn snmptrap from python

Hi I am trying to spawn an snmptrap from python but i keep getting the following error Invalid version specified after -v flag: 2c -c public 192.168.2.162 SNMPv2-SMI::enterprises.3.1.1 here is the python code i am using from subprocess import Popen Popen() When i test the same... (0 Replies)
Discussion started by: kaf3773
0 Replies

6. Shell Programming and Scripting

Using spawn and expect getting error

#!/bin/sh # # set -x stty -echo; read -p "Input password:" A; stty echo; echo; for HOST in `cat elc.hosts.list` do # echo "Connecting to $HOST" expect -c "set timeout -1;\ spawn sshr $HOST -l root \"mkdir /perfstat;\";\ match_max 100000;\ expect *'/root/.ssh/id_dsa':*;\ send --... (1 Reply)
Discussion started by: madlot
1 Replies

7. UNIX for Advanced & Expert Users

spawn() Vs. fork()

what is diffenrence between spawn and fork ? "fork() system call spawns the processess" what is mean by this sentence. (1 Reply)
Discussion started by: anandgodse
1 Replies

8. UNIX for Dummies Questions & Answers

spawn: not found

Hi, I'm very new to UNIX. I need to FTP a file to a remote host. It happens through a port 2222.I need to automate the process as the SCP command prompts for a password. 1) The regular ftp, tells me that the connection is refused 2) The sftp login@remotehost gives me... (0 Replies)
Discussion started by: sandy.cog
0 Replies
Login or Register to Ask a Question