#!/bin/sh ############################################################ # Name : /public/scripts/p4client_rmhost # Purpose : Remove the host restricted field from all # clients definitions. # This script is run by cron system, # by cmadm, on a daily basis. # By : Yariv Sheizaf # Date : ############################################################ P4PORT=192.168.0.17:1666 export P4PORT for i in `/public/scripts/p4 clients | awk '{print $2}'` do /public/scripts/p4 client -o $i | grep -v "^Host:" | /public/scripts/p4 client -i done exit 0