Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Failure to restore $PERL_PATH results in email with:

Can't locate XML/Simple.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at /afs/slac/package/pinger/pinger2/share/pinger/pinger2.pl line 450.
BEGIN failed--compilation aborted at /afs/slac/package/pinger/pinger2/share/pinger/pinger2.pl line 450.

An improved solution is:

use Net::Domain qw(hostname hostfqdn hostdomain);  

my$hostname = hostname();#eg $hostname='pinger'

my$hostfqdn = hostfqdn();#eg $hostfqdn='pinger.slac.stanford.edu'

my$PERL_PATH="/usr/local/bin/perl";

if($hostnameeq'pinger-test') {$PERL_PATH="/usr/bin/perl";}

Access to /nfs

INC0346900:

...

By using this system you expressly consent to the terms and conditions in
https://www.slac.stanford.edu/comp/policy/use.html

CentOS Linux release 7.9.2009 (Core) VMware, Inc. VMware Virtual Platform
=========================================================================
-bash-4.2$ trscrontab -e
-bash: trscrontab: command not found
-bash-4.2$ source .bashrc
[pinger@pinger-test ~]$ trscrontab -e
trscrontab: Old and new crontabs are identical.
trscrontab: Request scheduled.
[pinger@pinger-test ~]$ cat .bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
alias escrow="perl /afs/slac.stanford.edu/package/scsutils/scripts/escrow"
alias trscrontab=/afs/slac.stanford.edu/package/scsutils/src/trs/cron/trscrontab
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions

In that case, can you rename .bashrc to .bash_profile, and re-login ?

That fixed it:
retaylor:~ cottrell$ ssh pinger@pinger-test.slac.stanford.edu
pinger@pinger-test.slac.stanford.edu's password:
Last login: Thu Jan 6 12:54:02 2022 from 23-124-104-105.lightspeed.sntcca.sbcglobal.net
===============================================================================
This is a Federal computer system and is the property of the United States
Government. It is for authorized use only. Users (authorized or unauthorized)
have no explicit or implicit expectation of privacy.

By using this system you expressly consent to the terms and conditions in
https://www.slac.stanford.edu/comp/policy/use.html

CentOS Linux release 7.9.2009 (Core) VMware, Inc. VMware Virtual Platform
===============================================================================
[pinger@pinger-test ~]$ trscrontab -e
trscrontab: Old and new crontabs are identical.
trscrontab: Request scheduled.
[pinger@pinger-test ~]$

escrow edit -c netdev cottrell

INC0346741:

I note that escrow does not seem to work on pinger-test or cent7a
[cottrell@pinger-test ~]$ escrow edit -c netdev cottrell
escrow: Command not found.

...