Sponsored Content
Top Forums Shell Programming and Scripting Shell Script to filter users and create them again from a back-up server Post 302857469 by blackrageous on Thursday 26th of September 2013 11:55:19 AM
Old 09-26-2013
What are you asking here? In general this script is too dependent on a specific environment. What if I don't have the bash shell or use sudo. Also, system administrators generally don't like to be prompted and "joe user" should not be running a script to add users so I would never hand this task off to someone not responsible for admin. There also seems to a language dependency here. Why is PS3 in a different language than the echo statements?
Not sure of the value of the functionality here. I don't mean to be negative but you asked for feedback.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

shell scripts to create 100 users

Hello i need a shell script to create 100 users i am running hp-ux......... startegy is something like this craete a shell script !/bin/ksh counter=1 while do { useradd usr$counter passwd usr$counter # here begins my problem when i say passwd usr$counter #it again prompts... (9 Replies)
Discussion started by: xiamin
9 Replies

2. Shell Programming and Scripting

script to create users on many servers

Hi all, working on script to create a user acct on all our servers. for i in `cat $host_file`; do ssh $i /usr/bin/sudo /usr/bin/mkuser id='bpadm' gecos='NetBackup Admin' 2>&1 >> $log done error i get is: 3004-692 Error changing "id" to "bpadm" : Value is invalid. I have tried this in... (1 Reply)
Discussion started by: dnidiffer
1 Replies

3. OS X (Apple)

interactive shell script to create users 10.4

Hello everyone, Not sure if this is the right place, but OS X isn't your standard Unix, so I figured here would be best. I am looking at creating a script that will be interactive that admins can run to create users. Now, 10.4 uses netinfo database and netinfo manager to handle it's users. ... (3 Replies)
Discussion started by: tlarkin
3 Replies

4. Shell Programming and Scripting

help to create script for added date to list users

hi my friends im asking for the possibility to creat a script in ubuntu for added date to list users for doing this : - search in debug connected user of all connected users - if a new user is connect for the first time to my server the script record the date of the connection and added it... (1 Reply)
Discussion started by: amzioujda
1 Replies

5. Shell Programming and Scripting

Create new users in DMZ box using script

I remote to many DMZ boxes every day to run batch file that allows me to create users. I create users in 17 DMZ boxes every day which takes a lot of my time. Is there any script that would do this job from my local computer? Thank you for your help! (3 Replies)
Discussion started by: idiazza
3 Replies

6. Shell Programming and Scripting

How to create a shell script to remove the files on solaris server at 00000hrs?

Hi folks, As per mentioned in the title, how to create a shell script to delete those files from the server at 00000hrs every day? Thanks in advance :) (2 Replies)
Discussion started by: kimurayuki
2 Replies

7. Shell Programming and Scripting

Help with script to create users from database query

#!/bin/bash user=`mysql userList -uuserlist -puserlistpassword -s -N -e "SELECT userName FROM users WHERE activated='n'"` for i in $user; do useradd "$i" -m doneThis is what I have done so far. But obviously it still does not work. I'm trying to create users based on information stored in a... (5 Replies)
Discussion started by: bucketuk
5 Replies

8. Shell Programming and Scripting

Create users from a text file by script

Hi All, I am new to scripting, i want to create one script in which i can add users from a text file, assign them a default password like 123456. It should be like: Username= $i (it should take users from text file one by one) Password : 123456(default for every user) (1 Reply)
Discussion started by: prad_rocxx
1 Replies

9. UNIX for Dummies Questions & Answers

Shell script to read lines in a text file and filter user data Shell Programming and Scripting

sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies

10. Shell Programming and Scripting

Script to read through a file and create new users/assign them to groups in Ubuntu

Hi all. I need a shell script that can, in short, read through a text file line by line and create a new user in Ubuntu, as well as assign that user to a group. The format of the text file is not important but preferably: 'username:group'. I don't have much programming knowledge no matter shell... (3 Replies)
Discussion started by: LewisWeekly
3 Replies
update-fontlang(8)					       Debian User's Manual						update-fontlang(8)

NAME
update-language, update-fmtutil, update-fmtlang - update various TeX-related configuration files SYNOPSIS
update-language [options] update-fmtutil [options] DESCRIPTION
This manual page explains briefly the usage of the three TeX configuration update programs update-language and update-fmtutil. The update-fontlang script should not be called directly, but only via the two described links. For a more in-depth description, please see the document TeX on Debian in /usr/share/doc/tex-common/TeX-on-Debian.txt.gz (also available as HTML and PDF). The programs update-language and update-fmtutil create or update the configuration files language.dat and fmtutil.cnf, respectively. These files define the hyphenation patterns to be loaded into LaTeX-related TeX formats (language.dat), and the list of formats to be created (fmtutil.cnf). These programs can be used either in system-wide mode if called by root, or in a user-specific mode if called by a user without super-user privileges. OPTIONS
-c DIR, --conf-dir=DIR directory where the user-specific configuration files are looked for in user-specific mode (default TEXMFCONFIG/language.d for update-language and TEXMFCONFIG/fmt.d for update-fmtutil, where TEXMFCONFIG is usually $HOME/.texmf-config). -o FILE, --output-file=FILE file to write the output to. Per default, in system-wide mode, update-language writes to /var/lib/texmf/tex/generic/config/lan- guage.dat and update-fmtutil writes to /var/lib/texmf/web2c/fmtutil.cnf. --checks perform sanity checks on the generated config file. Don't use this in maintainer scripts. --quiet don't write anything to the standard output during normal operation --help print a summary of the command-line usage and exit --version output version information and exit USAGE
In system-wide mode, both programs merge those files ("configuration snippets") with a specific extension in the respective configuration directories to produce the final file. These configuration directories and extensions are language.d and .cnf for update-language, and fmt.d and .cnf for update-fmtutil. In system-wide mode, these directories are those under /etc/texmf/. Both TeX add-on packages and local administrators can add files to these directories. If a package that provides such snippets is removed but not purged, including the snippet will likely break the system. To prevent the inclusion in these cases, snippets installed by packages have to contain a magic header: # -_- DebPkgProvidedMaps -_- which local administrators should not remove. From the files with a magic header, only those files which are also listed in one of the files in /var/lib/tex-common/language-cnf/ for update-language, and /var/lib/tex-common/fmtutil-cnf/ for update-fmtutil, are actually included into the final output file. This way, local changes to the configuration can be preserved while the package is in state 'rc' (that is, the package is removed, but its configuration files are still present). For details about this mechanism, package maintainers should consult the Debian TeX Policy. As a special case, the files for JadeTeX and xmlTeX are only included if there is already a file for the LaTeX format (see TeX on Debian for details). The user-specific mode provides a way for a non-admin user to override system-wide settings. In this mode, update-language writes to TEXM- FVAR/tex/generic/config/language.dat, and update-fmtutil writes to TEXMFVAR/web2c/fmtutil.cnf, where TEXMFVAR is usually $HOME/.texmf-var. Furthermore, files present within the user-specific configuration directories are included in addition to the files present in the system- wide configuration directories. In case the same filename exists in the system-wide configuration directory and the user-specific configu- ration directory, the user-specific file is used instead of the system-wide one. The user-specific configuration directories are TEXMFCON- FIG/language.d for update-language and TEXMFCONFIG/fmt.d for update-fmtutil, where TEXMFCONFIG is usually $HOME/.texmf-config. The system- wide configuration directories have the same names, but are located in /etc/texmf/ instead of TEXMFCONFIG. Note that changes introduced by updates of packages are not propagated to the user's configuration files. This has to be done by hand. FILES
/var/lib/texmf/tex/generic/config/language.dat This file is generated or updated by update-language in system-wide mode and contains a list of the hyphenation patterns loaded into LaTeX-based formats by fmtutil-sys. /var/lib/texmf/web2c/fmtutil.cnf This file is generated or updated by update-fmtutil in system-wide mode and contains a list of formats to be generated by fmtutil- sys. /etc/texmf/language.d/name.cnf Input files for update-language /etc/texmf/fmt.d/name.cnf Input files for update-fmtutil /var/lib/tex-common/language-cnf/package.list Lists the file(s) installed by package in /etc/texmf/language.d/. /var/lib/tex-common/fmtutil-cnf/package.list Lists the file(s) installed by package in /etc/texmf/fmt.d/. SEE ALSO
fmtutil(1), fmtutil-sys(1) The programs actually using the generated configuration files (language.dat and fmtutil.cnf). TeX on Debian Documentation to be found in /usr/share/doc/tex-common/TeX-on-Debian.txt.gz (also available as HTML and PDF), describing in more detail how to setup and maintain a TeX system in Debian. It also includes details on user-specific configuration. Debian TeX Policy to be found in /usr/share/doc/tex-common/Debian-TeX-Policy.txt.gz (also available as HTML and PDF), describing the internals and the TeX Policy established on the Debian TeX mailing-list (debian-tex-maint@lists.debian.org). Intended audience is mainly developers packaging TeX-related resources for Debian. dh_installtex(1) a debhelper-like script for managing the installation of files into the system-wide configuration directories; this script helps to write Debian packages containing TeX-related resources that conform to the Debian TeX Policy. AUTHOR
This manual page was written by Norbert Preining <preining@debian.org> for the Debian distribution (and may be used by others). It was later updated by Florent Rougon <f.rougon@free.fr>. Debian 2006-12-11 update-fontlang(8)
All times are GMT -4. The time now is 01:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy