8 More Discussions You Might Find Interesting
1. Slackware
HI everyone,
Nice to meet you all.
I recently rebooted Slackware 12.1 running on a Dell PowerEdge 2400. after 240 days of continuous run-time, and discovered it gets stuck in a sbin/agetty loop. We were rebooting because trying to mount root in webmin broke a bunch of things. Couldn't even get... (3 Replies)
Discussion started by: 5pac3m0nk3y
3 Replies
2. Shell Programming and Scripting
i have to run the following script through a pipe:
script.sh:
#!/bin/bash
echo "Hello World"
echo -e "The \033
here's how its currently being run:
bash -c "$(cat script.sh)"
This is an interactive script. the problem is, when i run it this way, if you go to another terminal and... (4 Replies)
Discussion started by: SkySmart
4 Replies
3. Shell Programming and Scripting
so for the purposes of this thread, interactive scripts are shell scripts that prompts for a response from a user and then waits for the user to enter a response before proceeding.
now, from my understanding of this, the one common string i can expect to find in all interactive scripts is some... (1 Reply)
Discussion started by: SkySmart
1 Replies
4. Shell Programming and Scripting
i have a script that contains:
script.sh
#!/bin/bash
echo -e "\t\t\t0. Exit"
echo -e "\t\t\t1. Help"
echo -e "\t\t\t2. Notes"
echo -e "\t\t\t3. Classes"
echo "${newline}"
echo -n -e "\t Please enter option number : "
read Type
case $Type in
1)
clear
... (1 Reply)
Discussion started by: SkySmart
1 Replies
5. Shell Programming and Scripting
I'm writing a basic ldapsearch script that prompts the user for their search criteria. The input they're being asked for is the search filter portion of the ldapsearch command. This string must be quoted. When the script executes the command it returns nothing. If I hard code a search filter it... (1 Reply)
Discussion started by: donniemac
1 Replies
6. Red Hat
I have been asked to modify our PXE server such that there will be only one entry in the pxelinux.cfg/default file, where the same kernel and initrd.img will be used regardless of what operating system is to be installed, and the user will type in the path to the kickstart file that will be used. ... (7 Replies)
Discussion started by: ceb
7 Replies
7. Shell Programming and Scripting
Hello friends,
I am a ORACLE user, we have some internal database file, lets say "demo.config" and an internal tool to patch this file....lets call that tool as "dbfixer".
We have 100's-1000's of such files "demo.config" which need to get patched by the tool. So we need to write a script ...... (1 Reply)
Discussion started by: Newbie456267uni
1 Replies
8. Shell Programming and Scripting
Hi all,
I am trying to write a program that will automate interactive scripts that use 'pkgadd'. Easily enough I can use 'pkgask' and a response file for most of what I want to do, but unfortunately there are parts of some pkg installations that are configured to only take input from /dev/tty!!... (2 Replies)
Discussion started by: bookoo
2 Replies
CheckInstall(8) System Manager's Manual CheckInstall(8)
NAME
checkinstall -- Track installation of local software, and produce a binary manageable with your package management software.
SYNOPSIS
checkinstall [options] [install command]
DESCRIPTION
checkinstall is a program that monitors an installation procedure (such as make install, install.sh ), and creates a standard package for
your distribution (currently deb, rpm and tgz packages are supported) that you can install through your distribution's package management
system (dpkg, rpm or installpkg).
Note that for most useful actions, checkinstall must be run as root.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes ('-'). A summary of options is
included below.
All the options that toggle a switch default to activate the option. To force activation or deactivation, call them with '=yes' or '=no'.
As an example, to disable stripping use --strip=no.
-h --help
Show summary of options.
--version Show version information.
--copyright
Show Copyright information
--type Choose packaging system. Can be one of 'slackware', 'debian' or 'rpm'.
-D Create a Debian package.
-R Create a RPM package.
-S Create a Slackware Package.
--install Toggle installation of the created package.
--fstrans Enable/disable filesystem translation. Filesystem translation enabled causes the install to proceed in a temporary directory,
thus not actually touching your system.
-y --default
Accept default answers to all questions.
--pkgname Set the package name.
--pkgversion
Set package version.
-A --arch --pkgarch
Set package architecture.
--pkgrelease
Set the package release.
--pkglicense
Set package license.
--pkggroup
Set the package group.
--pkgsource
Set source location
--pkgaltsource
Set alternate source location
--pakdir Where to save the new package.
--maintainer
Set the package maintainer. Be careful to correctly quote/escape the name, to prevent shell expansion
--provides
Features provided by this package (currently only on RPM and Deb).
--requires
Dependencies required by this package.
--rpmflags
Pass this flags to the rpm installer.
--rpmi Use the -i flag when installing a rpm.
--rpmu Use the -U flag when installing a rpm.
--dpkgflags
Pass this flags to the dpkg installer
--spec Where the .spec file is located
--nodoc Do not include documentation files.
-d Set debug level. Must be one of 0, 1 and 2.
-si Run an interactive install command
--showinstall
Toggle interactive install command.
-ss Run an interactive Slackware installation script.
--showslack
Toggle interactive Slackware installation script.
--autodoinst
Toggle creation of a doinst.sh script.
--strip Toggle stripping any ELF binaries found inside the package.
--stripso Toggle stripping any ELF libraries (.so) found inside the package.
--addso Search for any shared libs and add them to /etc/ld.so.conf
--reset-uids
Reset perms for all files/dirs to 755 and the owner/group for all dirs to root.root
--gzman Compress any man pages found inside the package.
--docdir Where to put documentation files.
--umask Set the umask value.
--exclude Exclude these files/directories from the package.
--include Force the inclusion in the package of the files/dirs listed in the argument (a file).
--inspect Inspect the package's file list
--review-spec
Review the spec file before creating a .rpm.
--review-control
Review the control file before creating a .deb.
--newslack
Use the new (8.1+) Slackware description format ("--newslack" implies "-S")
--with-tar
Manually set the path to the tar binary.
--deldoc Toggle deletion of doc-pak upon termination.
--deldesc Toggle deletion of description-pak upon termination.
--delspec Toggle deletion of spec file upon termination.
--bk Backup any overwritten files
--backup Toggle backup
FILES
This program reads its configuration from /etc/checkinstallrc, which can be used to override defaults. Command line arguments override
settings in the configuration file.
AUTHOR
This manual page was written by Felipe Sateler <fsateler@gmail.com> for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
CheckInstall(8)