use spacecmd -q to suppress the top two lines

On Tue, Jul 28, 2015 at 6:37 AM, DEBASHISH BOSE <[email protected]
> wrote:

> Hi,
>
> I have run 2 commands one after the another and here is the output below
>
> [root@mytestspacewalk ~]# spacecmd -u admin -p admin -s
> mytestspacewalk.com "softwarechannel_listbasechannels"
> INFO: Spacewalk Username: admin
> INFO: Connected to https://mytestspacewalk.com/rpc/api as admin
> enterprise-linux-x86_64
> testchannel
> testchannel2
> testchannel3
> testchannel5
> testchannel6
> [root@mytestspacewalk ~]# spacecmd -u admin -p admin -s
> mytestspacewalk.com "softwarechannel_listchildchannels"
> INFO: Spacewalk Username: admin
> INFO: Connected to https://mytestspacewalk.com/rpc/api as admin
> enterprise-linux-common-channel-x86_64
> enterprise-linux-optional-x86_64
> enterpriselinux7optional
> enterpriselinux7test
> rhel-rhn-tools
> [root@mytestspacewalk ~]#
> [root@mytestspacewalk ~]#
>
>
> [root@mytestspacewalk ~]# spacecmd -u admin -p admin -s
> mytestspacewalk.com "softwarechannel_listbasechannels" exec
> 2>/dev/null
> enterprise-linux-x86_64
> testchannel
> testchannel2
> testchannel3
> testchannel5
> testchannel6
> [root@mytestspacewalk ~]#
> [root@mytestspacewalk ~]# spacecmd -u admin -p admin -s
> mytestspacewalk.com "softwarechannel_listchildchannels" exec
> 2>/dev/null
> [root@mytestspacewalk ~]#
>
>
> when i run the same command for both the occassions, one gives me the
> desired output by removing the top 2 lines ,starting with INFO ,b ut
> the other doesnot. Could you please let us know a solution to this.
>
> --
> regards
> Debashish
>
> _______________________________________________
> Spacewalk-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to