Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #75701 > unrolled thread

Spawn command

Started bymiguelfigueirasebastiao@gmail.com
First post2015-05-15 05:23 -0700
Last post2015-05-15 16:42 -0400
Articles 5 — 5 participants

Back to article view | Back to comp.sys.mac.system


Contents

  Spawn command miguelfigueirasebastiao@gmail.com - 2015-05-15 05:23 -0700
    Re: Spawn command Barry Margolin <barmar@alum.mit.edu> - 2015-05-15 10:58 -0400
      Re: Spawn command android <here@there.was> - 2015-05-15 18:45 +0200
    Re: Spawn command David Ritz <dritz@mindspring.com> - 2015-05-15 15:32 -0500
      Re: Spawn command JF Mezei <jfmezei.spamnot@vaxination.ca> - 2015-05-15 16:42 -0400

#75701 — Spawn command

Frommiguelfigueirasebastiao@gmail.com
Date2015-05-15 05:23 -0700
SubjectSpawn command
Message-ID<9fd0df01-f607-4cef-ae58-fa824d50677f@googlegroups.com>
Hi everyone,

It might be a stupid question but it seems that the "spawn" command is not working on my mac (10.10.1)

>spawn
-bash: spawn:command not found

Do I have to install spawn ? how ?

Cheers,
Miguel

[toc] | [next] | [standalone]


#75719

FromBarry Margolin <barmar@alum.mit.edu>
Date2015-05-15 10:58 -0400
Message-ID<barmar-86C5EC.10582015052015@88-209-239-213.giganet.hu>
In reply to#75701
In article <9fd0df01-f607-4cef-ae58-fa824d50677f@googlegroups.com>,
 miguelfigueirasebastiao@gmail.com wrote:

> Hi everyone,
> 
> It might be a stupid question but it seems that the "spawn" command is not 
> working on my mac (10.10.1)
> 
> >spawn
> -bash: spawn:command not found
> 
> Do I have to install spawn ? how ?

Never heard of it, what does it do? I've googled it, and can only find 
it as a command within an Expect script, it's not a shell command.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

[toc] | [prev] | [next] | [standalone]


#75739

Fromandroid <here@there.was>
Date2015-05-15 18:45 +0200
Message-ID<crmm4nFpnebU5@mid.individual.net>
In reply to#75719
In article <barmar-86C5EC.10582015052015@88-209-239-213.giganet.hu>,
 Barry Margolin <barmar@alum.mit.edu> wrote:

> In article <9fd0df01-f607-4cef-ae58-fa824d50677f@googlegroups.com>,
>  miguelfigueirasebastiao@gmail.com wrote:
> 
> > Hi everyone,
> > 
> > It might be a stupid question but it seems that the "spawn" command is not 
> > working on my mac (10.10.1)
> > 
> > >spawn
> > -bash: spawn:command not found
> > 
> > Do I have to install spawn ? how ?
> 
> Never heard of it, what does it do? I've googled it, and can only find 
> it as a command within an Expect script, it's not a shell command.

man spawn:

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 listens
       on a port as specified in the Postfix master.cf file and spawns 
an  exter-
       nal  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.
-- 
teleportation kills

[toc] | [prev] | [next] | [standalone]


#75764

FromDavid Ritz <dritz@mindspring.com>
Date2015-05-15 15:32 -0500
Message-ID<alpine.OSX.2.20.1505151525260.23154@mako.ath.cx>
In reply to#75701
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

On Friday, 15 May 2015 05:23 -0700, 
 in article <9fd0df01-f607-4cef-ae58-fa824d50677f@googlegroups.com>, 
 miguelfigueirasebastiao@gmail.com wrote:

> Hi everyone,

> It might be a stupid question but it seems that the "spawn" command 
> is not working on my mac (10.10.1)

> >spawn
> -bash: spawn:command not found

> Do I have to install spawn ? how ?

If Posfix is installed, spawn is too.

$ locate spawn | grep postfix/spawn
/Applications/Server.app/Contents/ServerRoot/usr/libexec/postfix/spawn
/opt/local/libexec/postfix/spawn
/usr/libexec/postfix/spawn

-- 
David Ritz <dritz@mindspring.com>
 Be kind to animals; kiss a shark.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlVWV+0ACgkQUrwpmRoS3usFUgCfXqUVe7zw0kbqa1siBOB1+0Mq
kNcAmQFrgc8iSt6CKgr5UQmYJmBzK45U
=gOuJ
-----END PGP SIGNATURE-----

[toc] | [prev] | [next] | [standalone]


#75765

FromJF Mezei <jfmezei.spamnot@vaxination.ca>
Date2015-05-15 16:42 -0400
Message-ID<55565a43$0$19987$c3e8da3$1cbc7475@news.astraweb.com>
In reply to#75764
>> It might be a stupid question but it seems that the "spawn" command 
>> is not working on my mac (10.10.1)

the "sh" command spawns a subprocess shell. You can then do many
commands, change directory etc, and then "exit" to return to the orginal
shell and original current working directory and environment variables etc.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.mac.system


csiph-web