changed nc command to gnu syntax