parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Parallel Digest, Vol 41, Issue 3


From: gopal . bhaskaran
Subject: Re: Parallel Digest, Vol 41, Issue 3
Date: Mon, 30 Sep 2013 17:37:22 +0530

Pradeep,
    The shell function abc is defined in your bash script which will not be defined on the machines in which you are trying to run it.
Convert it into a bash script and invoke that.

Thanks & Regards
Gopal
Tata Consultancy Services
Ph:- +91 20 67944256
Mailto: gopal.bhaskaran@tcs.com
Website:
http://www.tcs.com
____________________________________________
Experience certainty.        IT Services
                       Business Solutions
                       Consulting
____________________________________________



From: parallel-request@gnu.org
To: parallel@gnu.org
Date: 09/28/2013 09:31 PM
Subject: Parallel Digest, Vol 41, Issue 3
Sent by: parallel-bounces+gopal.bhaskaran=tcs.com@gnu.org





Send Parallel mailing list submissions to
                parallel@gnu.org

To subscribe or unsubscribe via the World Wide Web, visit
               
https://lists.gnu.org/mailman/listinfo/parallel
or, via email, send a message with subject or body 'help' to
                parallel-request@gnu.org

You can reach the person managing the list at
                parallel-owner@gnu.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Parallel digest..."


Today's Topics:

  1. Issue with exports in GNU parallel (Pradeep Patra)
  2. Re: Issue with exports in GNU parallel (Ole Tange)


----------------------------------------------------------------------

Message: 1
Date: Sat, 28 Sep 2013 08:22:24 +0530
From: Pradeep Patra <smilesonisamal@gmail.com>
To: parallel@gnu.org
Subject: Issue with exports in GNU parallel
Message-ID:
                <CABsV+g6f=LuGoN29A7B0YkwnEvKNUvd-K1+BdKpNmOLrxD0wVA@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,
 I am trying to write a program which will connect to all the client
machines once by ssh and run a particular tool using different user
credentials in that single connection.

I thought of writing the program as below. But I am getting an error "abc
not found" and the test fails. I guess there is a Bug for this already.

Is there any other way I can perform this task. Any example will really
help to achieve this kind of task.

Regards
Pradeep.

I tried to subscribe to mailing list but it doesnot work for some reason i
guess. I did not get the confirmation email after two days.

Parallel Subscription results Your subscription request has been received,
and will soon be acted upon. Depending on the configuration of this mailing
list, your subscription request may have to be first confirmed by you via
email, or approved by the list moderator. If confirmation is required, you
will soon get a confirmation email which contains further instructions.


#!/bin/bash
word="$1"
export word


abc() {

for i in {1..5}
do
mkdir -p /t/temp$i
#Run the tool



}
export -f abc
SERVER1="10.213.12.136"
SERVER2="10.213.12.132"
SERVER3="10.213.12.137"
SERVER4="10.213.12.157"
SERVER5="10.213.12.133"
SERVER6="10.213.12.139"
SERVER7="10.213.12.158"
SERVER8="10.213.12.141"
SERVER9="10.213.12.153"
SERVER10="10.213.12.150"
SERVER11="10.213.12.144"

echo $word | SHELL=/bin/bash parallel --onall -S
$SERVER1,$SERVER2,$SERVER3,$SERVER4,$SERVER5,$SERVER6,$SERVER7,$SERVER8,$SERVER9,$SERVER10,$SERVER11
abc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.gnu.org/archive/html/parallel/attachments/20130928/478ebbe5/attachment.html>

------------------------------

Message: 2
Date: Sat, 28 Sep 2013 10:12:39 +0200
From: Ole Tange <ole@tange.dk>
To: Pradeep Patra <smilesonisamal@gmail.com>
Cc: "parallel@gnu.org" <parallel@gnu.org>
Subject: Re: Issue with exports in GNU parallel
Message-ID:
                <CA+4vN7x5B9oX53rg1vgKboap8AU_wnQG4euL-GhqE-zfQVqJCg@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hi Pradeep.

GNU Parallel is capable of what you want to do.

It is unclear whether you have:

* watched the intro videos
https://www.youtube.com/playlist?list=PL284C9FF2488BC6D1
* walked through the tutorial
(
http://www.gnu.org/software/parallel/parallel_tutorial.html or man
parallel_tutorial)
* read the man page (man parallel - Read at least the examples)

In the man page it says:

      Your bug report should always include:

      ? The error message you get (if any).

      ? The output of parallel --version. If you are not running the latest
        released version you should specify why you believe the problem is
        not fixed in that version.

      ? A complete example that others can run that shows the problem. This
        should preferably be small and simple. A combination of yes, seq,
        cat, echo, and sleep can reproduce most errors. If your example
        requires large files, see if you can make them by something like
        seq 1000000 > file or yes | head -n 10000000 > file.

      ? The output of your example. If your problem is not easily
        reproduced by others, the output might help them figure out the
        problem.

Based on your example alone it does not look like a bug, so try to
provide the missing information.


/Ole

On Sat, Sep 28, 2013 at 4:52 AM, Pradeep Patra <smilesonisamal@gmail.com> wrote:
> Hi all,
>   I am trying to write a program which will connect to all the client
> machines once by ssh and run a particular tool using different user
> credentials in that single connection.
>
> I thought of writing the program as below. But I am getting an error "abc
> not found" and the test fails. I guess there is a Bug for this already.
>
> Is there any other way I can perform this task. Any example will really help
> to achieve this kind of task.
>
> Regards
> Pradeep.
>
> I tried to subscribe to mailing list but it doesnot work for some reason i
> guess. I did not get the confirmation email after two days.
>
> Parallel Subscription results
>
> Your subscription request has been received, and will soon be acted upon.
> Depending on the configuration of this mailing list, your subscription
> request may have to be first confirmed by you via email, or approved by the
> list moderator. If confirmation is required, you will soon get a
> confirmation email which contains further instructions.
>
>
> #!/bin/bash
> word="$1"
> export word
>
>
> abc() {
>
> for i in {1..5}
> do
> mkdir -p /t/temp$i
> #Run the tool
>
>
>
> }
> export -f abc
> SERVER1="10.213.12.136"
> SERVER2="10.213.12.132"
> SERVER3="10.213.12.137"
> SERVER4="10.213.12.157"
> SERVER5="10.213.12.133"
> SERVER6="10.213.12.139"
> SERVER7="10.213.12.158"
> SERVER8="10.213.12.141"
> SERVER9="10.213.12.153"
> SERVER10="10.213.12.150"
> SERVER11="10.213.12.144"
>
> echo $word | SHELL=/bin/bash parallel --onall -S
> $SERVER1,$SERVER2,$SERVER3,$SERVER4,$SERVER5,$SERVER6,$SERVER7,$SERVER8,$SERVER9,$SERVER10,$SERVER11
> abc
>



------------------------------

_______________________________________________
Parallel mailing list
Parallel@gnu.org
https://lists.gnu.org/mailman/listinfo/parallel


End of Parallel Digest, Vol 41, Issue 3
***************************************


=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


reply via email to

[Prev in Thread] Current Thread [Next in Thread]