05-31-2011
Use a listing script to drive a editing script, like sed, to dynamically make the expect script with the list of commands you need.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm trying to execute a single shell command that will give me a sorted list of all the users currently logged into the system, displaying the users name as it appears in /etc/passwd.
I've tried
awk -F: '{print $1}' /etc/passwd | xargs finger -s | cut -c11-28 | uniq
This list whoever does... (7 Replies)
Discussion started by: kungfuice
7 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Can I get a script to list out all the users, who has not logged on since last 90 days. Last command in not working due due to /var/adm/wtmpx is more than 2 GB.
Thanks in advance.
Regards,
Roni (10 Replies)
Discussion started by: manasranjanpand
10 Replies
3. Solaris
I need actuall script which List all inactive users who has not logged on since last 90 days
Thanks in advance.
Di! (17 Replies)
Discussion started by: haridham
17 Replies
4. Programming
How can I get the list of logged in users in the system programmatically?
I can get the list with 'who' or 'users' commands but I need to get the list programmatically...
May someone help, please?
Thanks in advance. (2 Replies)
Discussion started by: xyzt
2 Replies
5. Shell Programming and Scripting
I am trying to find a way to list every records inside a file (usually a log file) that are present after a record mathing/greater-then a timestamp supplied by another script.
The timestamp can be anywhere inside the record and it is usually in the standard `date` format (will not look for other... (5 Replies)
Discussion started by: Browser_ice
5 Replies
6. Shell Programming and Scripting
I'm writing a script that'll send a time-stamp to my backup server. I create a file with the name of the current date, send it to my server with scp and rm the file from the local computer.
Individually these commands work fine and with a set name the expect scripts also work fine. The problem... (0 Replies)
Discussion started by: Ktesh564
0 Replies
7. Shell Programming and Scripting
I'm trying to make an expect function that will pass through a variable.
/usr/bin/expect<<EOD
spawn su -
expect "Password: "
send "$psswd\r"
expect "#"
send "/etc/init.d/network restart >>$log\r"
expect "#"
send "exit\r"
EOD
The $log passes through but my $psswd fails
I know... (1 Reply)
Discussion started by: Lotheovian
1 Replies
8. Shell Programming and Scripting
Hi Guys!
I am sure that this question might appeared previously, but I still don't know how to show a list of logged out users. Please help with this!
Thanks in advance:) (5 Replies)
Discussion started by: saloliubliu
5 Replies
9. Forum Support Area for Unregistered Users & Account Problems
I'm getting the following error (or something similar) whenever I try to view a thread when I'm logged in.
That is, I login, hit "New Posts", get a list of theads, click on one (in this example is was the "Not allowed to post URLs" thread), then get the following HTML error page instead of the... (1 Reply)
Discussion started by: cnamejj
1 Replies
10. Shell Programming and Scripting
I was wondering if anyone could provide some assistance. I trying to run an expect script within bash and get the results of a variable called RESULT. I Have tried a few things but none of them have worked. I know that the child process (the expect script) in this instance cannot set a variable... (6 Replies)
Discussion started by: ylafont
6 Replies
LEARN ABOUT SUSE
networkmanager
NETWORKMANAGER(8) System Manager's Manual NETWORKMANAGER(8)
NAME
NetworkManager - network management daemon
SYNOPSIS
NetworkManager [--no-daemon]
DESCRIPTION
The NetworkManager daemon attempts to make networking configuration and operation as painless and automatic as possible by managing the
primary network connection and other network interfaces, like Ethernet, WiFi, and Mobile Broadband devices. NetworkManager will connect
any network device when a connection for that device becomes available, unless that behavior is disabled. Information about networking is
exported via a D-Bus interface to any interested application, providing a rich API with which to inspect and control network settings and
operation.
NetworkManager will execute scripts in the /etc/NetworkManager/dispatcher.d
directory in alphabetical order in response to network events. Each script should be (a) a regular file, (b) owned by root, (c) not
writable by group or other, (d) not set-uid, (e) and executable by the owner. Each script receives two arguments, the first being
the interface name of the device just activated, and second an action.
up The interface has been activated. The environment contains more information about the interface; CONNECTION_UUID contains the UUID
of the connection. Other variables are IP4_ADDRESS_N where N is a number from 0 to (# IPv4 addresses - 1), in the format
"address/prefix gateway". IP4_NUM_ADDRESSES contains the number addresses the script may expect. IP4_NAMESERVERS contains a space-
separated list of the DNS servers, and IP4_DOMAINS contains a space-separated list of the search domains. Routes use the format
IP4_ROUTE_N where N is a number from 0 to (# IPv4 routes - 1), in the format "address/prefix next-hop metric", and IP4_NUM_ROUTES
contains the number of routes to expect. If the connection used DHCP for address configuration, the received DHCP configuration is
passed in the environment using standard DHCP option names, prefixed with "DHCP4_", like "DHCP4_HOST_NAME=foobar".
down The interface has been deactivated.
vpn-up A VPN connection has been activated. The environment contains the connection UUID in the variable CONNECTION_UUID.
vpn-down
A VPN connection has been deactivated.
hostname
The system hostname has been updated. Use gethostname(2) to retrieve it.
OPTIONS
The following options are supported:
--no-daemon
Do not daemonize. This is useful for debugging, and directs log output to the controlling terminal in addition to syslog.
DEBUGGING
The following environment variables are supported to help debugging. When used in conjunction with the "--no-daemon" option (thus echoing
PPP and DHCP helper output to stdout) these can quickly help pinpoint the source of connection issues.
NM_SERIAL_DEBUG
When set to anything, causes NetworkManager to log all serial communication to and from serial devices like mobile broadband 3G
modems.
NM_PPP_DEBUG
When set to anything, causes NetworkManager to turn on PPP debugging in pppd, which logs all PPP and PPTP frames and client/server
exchanges.
SEE ALSO
nm-tool(1)
NETWORKMANAGER(8)