Re: nc missing option -z

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

 



On Tue, Feb 12, 2013 at 8:21 PM, Suvayu Ali <fatkasuvayu+linux@xxxxxxxxx> wrote:
> Hi,
>
> I used to use netcat to check if a particular host is up or if I have
> internet connection before I run a few scripts.  I would use the -z
> option in particular.  But now I see that has been removed:
>
>   $ nc -z imap.gmail.com 993 && sync-my-email.sh
>   ncat: invalid option -- 'z'
>
> Here is the excerpt from the old manual page:
>
>   -z Specifies that nc should just scan for listening daemons, without
>      sending any data to them.  It is an error to use this option in
>      conjunction with the -l option.
>
> Any ideas what happened to it?  What can I use as replacement?

Something like this perhaps.

$ 2>/dev/null >/dev/tcp/imap.gmail.com/993 && sync-my-email.sh

John
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux