I think your problem is with your $HOURS and MINS calculations. If you subtract 45 from 50, for example, you get "5" not "05". So your touch command gets confused because the timestamp is not formatted "MMDDhhmm".
Since you are using ksh, you could fix using...
However, if you have perl, perhaps try...
I wanted to know what email app most Sun solaris / unix gurus use ? I have become quite NON microsoft in the last few months in my studying solaris..
thanks
simon2000 (6 Replies)
I need help please .......
I have to urgently setup nvalias 's cdrom .......
following are the output command ......................
{7} ok banner
Sun Fire 3800
OpenFirmware version 5.15.2 (08/04/03 10:27)
Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved.
Use is... (1 Reply)
Operatin System : Solaris 5.9
Server : Sun Fire 3800
Shutdown and reboot i receive the following messages .....
un Fire 3800
OpenFirmware version 5.15.2 (08/04/03 10:27)
Copyright 2001-2003 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
SmartFirmware,... (8 Replies)
Hi ,
I wanted to find delata between two huge ( 8 GB ) files . Say file_TDY and file_YDY : These files are sorted based on a key .
I am using a command :
1)bdiff file_TDY file_YDY > diff_file
2) grep ' ^< ' diff_file > TDY_delta
I wanted only the changed records and newly added... (2 Replies)
I have a make_recovery tape, if I restore the VG00 volume group using this, will my other volume groups still be ok after the restore(I have 7 data volume groups)
I used make_recovery -A to create the tape
I have a HP9000 HP-UX 11
An internal disk is failing, the other volume groups are on... (3 Replies)
Hello,
I have recently completed my training for Solaris 10 and have a good understanding of the bases now. I am playing around with my system but can't do much since my knowledge is limited. I am looking for some projects or some threads where I can learn more and expand my knowledge step by... (16 Replies)
Hey guys,
I've registered here as I need urgent help. This is assignment for school and as you can see below I've completed the work. I'm simply stuck on one area.
:wall:
This script takes the first parameter (which is to be the new extension) and each parameter after that is a file... (1 Reply)
Hi,
I have a script that should login to a different box then the box that i am in and run the commands.
I have the script sample below that logins to a unix box and get the files .Looks like ls-lrt command is not running or its wrongly used.
#!/bin/bash
# Ask the user for build month... (5 Replies)
Hey Gurus,
Need help to modify the shell script. I am really new in the Linux/Unix world and dont familiar with shell scripting. SO bascially my script is running a ( curl ) with some endpoints and returning HTTP status code.
Now i have a 50 different endpoints and cant make each and individual... (3 Replies)
Discussion started by: Zach Kadiwal
3 Replies
LEARN ABOUT DEBIAN
checkbashisms
CHECKBASHISMS(1) General Commands Manual CHECKBASHISMS(1)NAME
checkbashisms - check for bashisms in /bin/sh scripts
SYNOPSIS
checkbashisms script ...
checkbashisms --help|--version
DESCRIPTION
checkbashisms, based on one of the checks from the lintian system, performs basic checks on /bin/sh shell scripts for the possible presence
of bashisms. It takes the names of the shell scripts on the command line, and outputs warnings if possible bashisms are detected.
Note that the definition of a bashism in this context roughly equates to "a shell feature that is not required to be supported by POSIX";
this means that some issues flagged may be permitted under optional sections of POSIX, such as XSI or User Portability.
In cases where POSIX and Debian Policy disagree, checkbashisms by default allows extensions permitted by Policy but may also provide
options for stricter checking.
OPTIONS --help, -h
Show a summary of options.
--newline, -n
Check for "echo -n" usage (non POSIX but required by Debian Policy 10.4.)
--posix, -p
Check for issues which are non POSIX but required to be supported by Debian Policy 10.4 (implies -n).
--force, -f
Force each script to be checked, even if it would normally not be (for instance, it has a bash or non POSIX shell shebang or appears
to be a shell wrapper).
--extra, -x
Highlight lines which, whilst they do not contain bashisms, may be useful in determining whether a particular issue is a false posi-
tive which may be ignored. For example, the use of "$BASH_ENV" may be preceded by checking whether "$BASH" is set.
--version, -v
Show version and copyright information.
EXIT VALUES
The exit value will be 0 if no possible bashisms or other problems were detected. Otherwise it will be the sum of the following error val-
ues:
1 A possible bashism was detected.
2 A file was skipped for some reason, for example, because it was unreadable or not found. The warning message will give details.
SEE ALSO lintian(1).
AUTHOR
checkbashisms was originally written as a shell script by Yann Dirson <dirson@debian.org> and rewritten in Perl with many more features by
Julian Gilbey <jdg@debian.org>.
DEBIAN Debian Utilities CHECKBASHISMS(1)