1#!/usr/local/bin/expect -- 2############################################################################### 3# Written by Chris Dunlap <cdunlap@llnl.gov>. 4# Copyright (C) 2007-2018 Lawrence Livermore National Security, LLC. 5# Copyright (C) 2001-2007 The Regents of the University of California. 6# UCRL-CODE-2002-009. 7# 8# This file is part of ConMan: The Console Manager. 9# For details, see <https://dun.github.io/conman/>. 10############################################################################### 11 12set env(PATH) "/bin:/usr/bin:/usr/local/bin" 13source /usr/lib/conman/conman.exp 14source /usr/lib/conman/alpha.exp 15log_user 0 16 17set cmd [lindex $argv 0] 18set consoles [lrange $argv 1 end] 19conman_run 256 $consoles alpha_do_srm_cmd 1 $cmd 20