def write_cron_file(user, path):
 if (_check_instance_uid_match(user) or (__grains__.get('os_family') in ('Solaris', 'AIX'))):
  return (__salt__['cmd.retcode'](_get_cron_cmdstr(path), runas=user, python_shell=False) == 0)
 else:
  return (__salt__['cmd.retcode'](_get_cron_cmdstr(path, user), python_shell=False) == 0)

def write_cron_file ( user , path ) : if ( _check_instance_uid_match ( user ) or ( __grains__ . get ( 'os_family' ) in ( 'Solaris' , 'AIX' ) ) ) : return ( __salt__ [ 'cmd.retcode' ] ( _get_cron_cmdstr ( path ) , runas = user , python_shell = False ) == 0 ) else : return ( __salt__ [ 'cmd.retcode' ] ( _get_cron_cmdstr ( path , user ) , python_shell = False ) == 0 )
writes the contents of a file to a users crontab cli example: .