[Spacewalk-list] spacecmd kickstart_import -n ... spacecmd: error: no such option: -n

Aaron Prayther aprayther at LCE.com
Mon Oct 18 18:34:25 UTC 2010


Nah man, it's totally there.  I just missed it.  It's not much clearer
than the very first Example.

My bad.  Just got used to doing the command line help stuff.  Now if you
wanted to be double redundant and throw it in there somewhere...
(waiting for the response... it's right there ;)

Thanks for the help and patience.

Aaron Prayther


-----Original Message-----
From: spacewalk-list-bounces at redhat.com
[mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Aron Parsons
Sent: Monday, October 18, 2010 2:28 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] spacecmd kickstart_import -n ... spacecmd:
error: no such option: -n

I believe it's outlined in the man page in the second or third section.
Maybe it needs to be
called out more though.

/aron

----- Original Message -----
From: "Aaron Prayther" <aprayther at lce.com>
To: spacewalk-list at redhat.com
Sent: Monday, October 18, 2010 2:20:17 PM GMT -05:00 US/Canada Eastern
Subject: Re: [Spacewalk-list] spacecmd kickstart_import -n ... spacecmd:
error: no such option: -n

Worked perfectly!  That's not a big deal at all.  Just needed to know...
a help entry?

Aaron Prayther


-----Original Message-----
From: spacewalk-list-bounces at redhat.com
[mailto:spacewalk-list-bounces at redhat.com] On Behalf Of Aron Parsons
Sent: Monday, October 18, 2010 2:08 PM
To: spacewalk-list at redhat.com
Subject: Re: [Spacewalk-list] spacecmd kickstart_import -n ... spacecmd:
error: no such option: -n

Give a -- before the function name.  spacecmd is trying to interpret the
parameters
globally instead of just for that function.  I have a fix in mind so you
don't need to
add the double-dash, I just haven't had time to implement it yet.

example:
spacecmd -- kickstart_import -n ks-server-x86_64-ver-1

/aron

----- Original Message -----
From: "Aaron Prayther" <aprayther at lce.com>
To: spacewalk-list at redhat.com
Sent: Monday, October 18, 2010 1:42:48 PM GMT -05:00 US/Canada Eastern
Subject: [Spacewalk-list] spacecmd kickstart_import -n ... spacecmd:
error: no such option: -n

I can make this command work interactively answering all the questions
but when I try to give it parameter to automate it.  it "junks" on the
options.  They all get errors, not just "-n".

I did upgrade to the latest spacecmd.noarch 0:0.7.5-1.el5

[sysutil at nces-sat-01 ~]$ spacecmd kickstart_import -n
ks-server-x86_64-ver-1
usage: spacecmd [options] [command]

spacecmd: error: no such option: -n
[sysutil at nces-sat-01 ~]$ spacecmd help kickstart_import
kickstart_import: Import a Kickstart profile from a file
usage: kickstart_import PROFILE [options]

options:
  -f FILE
  -n NAME
  -d DISTRIBUTION
  -p ROOT_PASSWORD
  -v VIRT_TYPE ['none', 'para_host', 'qemu', 'xenfv', 'xenpv']

Aaron Prayther

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-list




More information about the Spacewalk-list mailing list