Ignoring the space following the assignment operator in line 5, this script is still buggy. Any text file with lines ending in a backslash will be counted incorrectly.
If for some reason wc cannot be used (this thread smells like homework, so I am not providing any specifics), a tiny (just a few characters) sed script can count the number of lines. No need for a comparitively long-winded shell script.
Hi all.
After installing ssh on a server, i'd like to create a user with root privileges.
My problem is that after creating a user rootssh (uid=0, gid=20, /home/rootshh), i make rootssh's ssh keys. The problem is that normally the ssh-keygen should create the keys under $HOME/.ssh/, and actually... (6 Replies)
Can anyone tell me which is the equivalent command to
'stats' in ksh shell which discribes the file system?
Thanks in advance
Regards,
Im_new (6 Replies)
Hi,
I am new to HP-UX.
Can someboby help me with the svcs equivalent command in HP-UX ???
svcs is command that we use in Solaris for service status. I need to get the status of services in HP-UX.
Thanks in advance. (2 Replies)
i know after you do something in smitty via the gui, you can click something in smitty that will show you how to do the same thing via the command line, (not using the gui) can anyone tell me how (2 Replies)
Hi guys,
I am new to Unix, Need your help here.
I have installed cygwin software (Unix) in my computer (Windows vista). Now i want to create a shell script (.sh file)/other script which is equivalent of VBA code (at the bottom) and then put this .sh file into bin directory of c:/cygwin.
so... (7 Replies)
Hello guys,
I'm cleaning out big XML files (we're talking about 1GB at least), most of them contain words written in a non-latin alphabet.
The command I'm using is so slow it's not even funny:
cat $1 | sed -e :a -e 's/<*>//g;/</N;//ba;s/</ /g;s/>/... (4 Replies)
Hi,
The title of this post is a little vague but I couldn't think of what to call it.
In Unix you can perform the following command
ftp -v IPADDRESS <<END
put FILE
END
In a DOS command prompt, is it possible to do the same kind of thing that the "<<END" does?
So for example, ... (4 Replies)
Sir I have read the book SCO Unix System Administrators Guide and I have found the command sysadmsh useful for system administration. I have tried the above command in unixware7.1.3 and I got the message command not found.
Currently I am running unixware7.1.3 in VmWare WorkStsation10.0.
... (1 Reply)
Discussion started by: rupeshforu3
1 Replies
LEARN ABOUT DEBIAN
net::epp::frame::command::create::host
Net::EPP::Frame::Command::Create::Host(3pm) User Contributed Perl Documentation Net::EPP::Frame::Command::Create::Host(3pm)NAME
Net::EPP::Frame::Command::Create::Host - an instance of Net::EPP::Frame::Command::Create for host objects.
SYNOPSIS
use Net::EPP::Frame::Command::Create::Host;
use strict;
my $create = Net::EPP::Frame::Command::Create::Host->new;
$create->setHost('ns1.example.uk.com);
print $create->toString(1);
This results in an XML document like this:
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
epp-1.0.xsd">
<command>
<create>
<host:create
xmlns:contact="urn:ietf:params:xml:ns:host-1.0"
xsi:schemaLocation="urn:ietf:params:xml:ns:host-1.0
host-1.0.xsd">
<host:name>ns1.example.uk.com</host:name>
</domain:create>
</create>
<clTRID>0cf1b8f7e14547d26f03b7641660c641d9e79f45</clTRIDE>
</command>
</epp>
OBJECT HIERARCHY
L<XML::LibXML::Node>
+----L<XML::LibXML::Document>
+----L<Net::EPP::Frame>
+----L<Net::EPP::Frame::Command>
+----L<Net::EPP::Frame::Command::Create>
+----L<Net::EPP::Frame::Command::Create::Host>
METHODS
my $element = $frame->setHost($host_name);
This sets the name of the object to be created. Returns the <<host:name>> element.
$frame->setAddr({ 'ip' => '10.0.0.1', 'version' => 'v4' });
This adds an IP address to the host object. EPP supports multiple addresses of different versions.
AUTHOR
CentralNic Ltd (http://www.centralnic.com/).
United Domains AG (http://www.united-domains.de/) provided the original version of Net::EPP::Frame::Command::Create::Host.
COPYRIGHT
This module is (c) 2012 CentralNic Ltd. This module is free software; you can redistribute it and/or modify it under the same terms as Perl
itself.
SEE ALSO
o Net::EPP::Frame
perl v5.14.2 2012-04-23 Net::EPP::Frame::Command::Create::Host(3pm)