[Spacewalk-list] Need help on one of the spacecmd commands

DEBASHISH BOSE debashishbose2006 at gmail.com
Tue Jul 28 11:37:31 UTC 2015


Hi,

I have run 2 commands one after the another and here is the output below

[root at 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 at 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 at mytestspacewalk ~]#
[root at mytestspacewalk ~]#


[root at 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 at mytestspacewalk ~]#
[root at mytestspacewalk ~]# spacecmd -u admin -p admin -s
mytestspacewalk.com "softwarechannel_listchildchannels" exec
2>/dev/null
[root at 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




More information about the Spacewalk-list mailing list