Oracle Solaris System Administration (MOSC)

MOSC Banner

Unexpected Behavior in Bash Script for Solaris 10

edited Oct 6, 2011 6:12AM in Oracle Solaris System Administration (MOSC) 6 commentsAnswered ✓
I am writing a shell script for Solaris 10, to allow for information gathering on our users, such as when their passwords are getting close to expiring. I am having trouble getting Bash to compute the integer math, which I know it is capable of. The error that I keep getting is :user_expire.sh: line 45: 15251: command not found

Which corresponds to the value that is stored in c_epoch variable.

Any Suggestions are appreciated. Please see my code so far below.
_____________________________________________________________________________________________________________________________
#! /bin/bash

# This script takes the passwd file and determines the number of days until a
# user's account expires

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center