hi,
in a korn shell script, has anyone ever seen an 'exit' being treated as a 'break 2'? I have a script which has 3 nested loops. Within the inner most loop, i'm trying to exit the script on a fault condition. instead of exiting, it's acting as a 'break 2' and then continuing on with the... (4 Replies)
Not sure what has changed in the Unix environment.
The following script which was working is now not working.
#!/usr/bin/ksh
# -----------------------------------------------------------------------------
# File: monitor_db.sh
#
#... (1 Reply)
Hi,
I am facing a queer situation, when i run the below script it starts up multiple forked process and hangs the unix server , we had to reboot the server once. Can someone pls help me understand why the script is causing multiple processes to start . If i run ps -ef rename.sh , after i start... (2 Replies)
Wrote the following loop to but if I use exit, then I break entirely from my script, but instead I want to break from the case/esac and go to the next line in my script. I guess I need to know how to exit gracefully from a "while (true). Also, how can I allow the user to enter upper or lowercase... (4 Replies)
I have concurrent manager stop and check to verify all the process are stopped BUT even after all the process are stopped query script continues to run without break out.
# stop the concurrent manager
$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstpall.sh $DB_USER/$DB_PSWD
# check if the... (1 Reply)
can someone please explain to me what i'm doing wrong with this code:
WELT=$(awk '(($1 ~ "^${caag}$") || ($2 ~ "^${caag}$"))' /tmp/Compare.TEXT)
when run from the command line, it works. but it seems to be having a problem doing the comparison when variables are involved.
i tested from... (1 Reply)
I wasn't sure if this should go in the networking board or not, since I am trying to log into routers, however I don't think my script issues have anything to do with the routers themselves....
I am trying to write a script that will log into various routers we have on the network and determine... (2 Replies)
I am trying to check multiple server's "uptime" in a loop over "ssh".
When I execute multiple ssh commands with hard coded servernames script is executing fine.
But when I pass server names using while loop, script is exiting after checking first server's status, why?
# serverList... (8 Replies)
Discussion started by: kchinnam
8 Replies
LEARN ABOUT HPUX
apt-mark
APT-MARK(8) APT APT-MARK(8)NAME
apt-mark - show, set and unset various settings for a package
SYNOPSIS
apt-mark {-f=filename | {auto | manual} pkg... | {showauto | showmanual} [pkg...] } | {-v | --version} | {-h | --help}
apt-mark {hold | unhold | install | remove | purge} pkg... | {showhold | showinstall | showremove | showpurge} [pkg...]
DESCRIPTION
apt-mark can be used as a unified front-end to set various settings for a package, such as marking a package as being
automatically/manually installed or changing dpkg selections such as hold, install, deinstall and purge which are respected e.g. by apt-get
dselect-upgrade or aptitude.
AUTOMATICALLY AND MANUALLY INSTALLED PACKAGES
When you request that a package is installed, and as a result other packages are installed to satisfy its dependencies, the dependencies
are marked as being automatically installed, while the package you installed explicitly is marked as manually installed. Once an
automatically installed package is no longer depended on by any manually installed package it is considered no longer needed and e.g.
apt-get or aptitude will at least suggest removing them.
auto
auto is used to mark a package as being automatically installed, which will cause the package to be removed when no more manually
installed packages depend on this package.
manual
manual is used to mark a package as being manually installed, which will prevent the package from being automatically removed if no
other packages depend on it.
showauto
showauto is used to print a list of automatically installed packages with each package on a new line. All automatically installed
packages will be listed if no package is given. If packages are given only those which are automatically installed will be shown.
showmanual
showmanual can be used in the same way as showauto except that it will print a list of manually installed packages instead.
Options
-f=filename, --file=filename
Read/Write package stats from the filename given with the parameter filename instead of from the default location, which is
extended_status in the directory defined by the Configuration Item: Dir::State.
PREVENT CHANGES FOR A PACKAGE
hold
hold is used to mark a package as held back, which will prevent the package from being automatically installed, upgraded or removed.
unhold
unhold is used to cancel a previously set hold on a package to allow all actions again.
showhold
showhold is used to print a list of packages on hold in the same way as for the other show commands.
SCHEDULE PACKAGES FOR INSTALL, REMOVE AND PURGE
Some front-ends like apt-get dselect-upgrade can be used to apply previously scheduled changes to the install state of packages. Such
changes can be scheduled with the install, remove (also known as deinstall) and purge commands. Packages with a specific selection can be
displayed with showinstall, showremove and showpurge respectively. More information about these so called dpkg selections can be found in
dpkg(1).
OPTIONS -h, --help
Show a short usage summary.
-v, --version
Show the program version.
-c, --config-file
Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this
configuration file. If configuration settings need to be set before the default configuration files are parsed specify a file with the
APT_CONFIG environment variable. See apt.conf(5) for syntax information.
-o, --option
Set a Configuration Option; This will set an arbitrary configuration option. The syntax is -o Foo::Bar=bar. -o and --option can be
used multiple times to set different options.
FILES
/var/lib/apt/extended_states
Status list of auto-installed packages. Configuration Item: Dir::State::extended_states.
SEE ALSO apt-get(8),aptitude(8),apt.conf(5)DIAGNOSTICS
apt-mark returns zero on normal operation, non-zero on error.
BUGS
APT bug page[1]. If you wish to report a bug in APT, please see /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.
AUTHORS
Mike O'Connor
APT team
NOTES
1. APT bug page
http://bugs.debian.org/src:apt
APT 1.6.3ubuntu0.1 25 September 2015 APT-MARK(8)