11-02-2009
I'm sorry, but for homework questions there's a
special subforum. If your question hasn't already been answered, please repost there.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I am trying to write a script to list all users and their processes. I cant seem to find out how to link the PID to the user. For example if i run ps -a I get a nice list of all the processes running and their PID, but no information about which user is running them.
If i use w i... (17 Replies)
Discussion started by: Chiefos
17 Replies
2. Shell Programming and Scripting
Hi guys,
I'm writing a script to display all the current logged on users and the processes they're running, output to a file. The output will look similar to this:
User1 (Real name not login name)
PID TTY TIME CMD
3179 pts/3 00:00:00 vim
User2
PID TTY TIME ... (2 Replies)
Discussion started by: olimiles
2 Replies
3. UNIX for Dummies Questions & Answers
New to unix .. Is there a simple command or utility that will tell me when the last time a file was opened/used? (3 Replies)
Discussion started by: sbr262
3 Replies
4. UNIX for Dummies Questions & Answers
I am trying to write a script to list all users and their processes. I cant seem to find out how to link the PID to the user. For example if i run ps -a I get a nice list of all the processes running and their PID, but no information about which user is running them. I need the users real name not... (3 Replies)
Discussion started by: iago
3 Replies
5. Shell Programming and Scripting
Thx for all the help so far, I really appreciate it, this is the last task I have to do then I am no longer a trainee ^^, which means I can use whatever utility I want. :O
I need to write a script that does more or less what is shown below.
The Users Name
PID TTY TIME CMD
12345 pts/3... (22 Replies)
Discussion started by: barbus
22 Replies
6. Shell Programming and Scripting
hello All,
i am trying to get the each users by with thier processing. I have try it in several ways but i am not getting thier my code is
#!bin/bash/
users=`cat /etc/passwd | cut -d':' -f5`
onlineusers=`users | tr '.' ' '`
$onlineusers | while read `$users`
do
echo `ps -U $users`... (12 Replies)
Discussion started by: sam4now
12 Replies
7. UNIX for Advanced & Expert Users
I want to avoid a situation where because two users simultaneously
open a file and modify and save, leaving the original file in mess.
Is there a way in UNIX to warn a user if that particular file is already being
used by another user.
Thanks in advance (3 Replies)
Discussion started by: paresh n doshi
3 Replies
8. Shell Programming and Scripting
Hi, I was wondering if somebody could help me as I am struggling with writing a script for a training course.
Ive had to write 5 scripts and this is the last one but am struggling with this even though I understand what it is meant to do.....
PROBLEM: write a script which will allow you to... (1 Reply)
Discussion started by: isxrc
1 Replies
9. Homework & Coursework Questions
I would like to get an opinion for my solution for this task and get feedback about better approach or mistakes I have made.
1. The problem statement, all variables and given/known data:
The task is to create a script which prints information about users whose names are specified in the... (2 Replies)
Discussion started by: kornfan
2 Replies
10. UNIX for Beginners Questions & Answers
Hi,
Is it possible to display processes which have been running for more than a 5hrs using a variation of the ps -ef command?
Regards,
Manny (5 Replies)
Discussion started by: mantas44
5 Replies
LEARN ABOUT POSIX
dpkg-reconfigure
DPKG-RECONFIGURE(8) Debconf DPKG-RECONFIGURE(8)
NAME
dpkg-reconfigure - reconfigure an already installed package
SYNOPSIS
dpkg-reconfigure [options] packages
DESCRIPTION
dpkg-reconfigure reconfigures packages after they have already been installed. Pass it the names of a package or packages to reconfigure.
It will ask configuration questions, much like when the package was first installed.
If you just want to see the current configuration of a package, see debconf-show(1) instead.
OPTIONS
-ftype, --frontend=type
Select the frontend to use. The default frontend can be permanently changed by:
dpkg-reconfigure debconf
Note that if you normally have debconf set to use the noninteractive frontend, dpkg-reconfigure will use the dialog frontend instead,
so you actually get to reconfigure the package.
-pvalue, --priority=value
Specify the minimum priority of question that will be displayed. dpkg-reconfigure normally shows low priority questions no matter what
your default priority is. See debconf(7) for a list.
--default-priority
Use whatever the default priority of question is, instead of forcing the priority to low.
-u, --unseen-only
By default, all questions are shown, even if they have already been answered. If this parameter is set though, only questions that have
not yet been seen will be asked.
--force
Force dpkg-reconfigure to reconfigure a package even if the package is in an inconsistent or broken state. Use with caution.
--no-reload
Prevent dpkg-reconfigure from reloading templates. Use with caution; this will prevent dpkg-reconfigure from repairing broken templates
databases. However, it may be useful in constrained environments where rewriting the templates database is expensive.
-h, --help
Display usage help.
SEE ALSO
debconf(7)
AUTHOR
Joey Hess <joeyh@debian.org>
2018-02-28 DPKG-RECONFIGURE(8)