Sponsored Content
Full Discussion: Get username in script
Top Forums Shell Programming and Scripting Get username in script Post 302106775 by ahmedwaseem2000 on Monday 12th of February 2007 03:38:45 PM
Old 02-12-2007
I am not sure of mounting devices, but following the unix syntax you could try

mount_afp afp://${user}@dc.fqdns.edu/${user} /Users/${user}/Desktop/Home

do let me know if it works?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

username password in script

Can we write a script to telnet to a unix server from unix with the username and password hardcoded in the script?? something like ssh a@b -p password ??? (5 Replies)
Discussion started by: roshanjain2
5 Replies

2. Shell Programming and Scripting

Find username of user running the script

Hello All, If I have a simple cgi script and want to find the name of the person accessing the page, is it possible? How do I get the name of this user? Please help. I was trying a vague method but it doesn't seem to work with all browsers and versions ... $val=$ENV{'HTTP_COOKIE'}; $name... (1 Reply)
Discussion started by: garric
1 Replies

3. Shell Programming and Scripting

Need to modify a file of different username through script.

Hi ! All I want to write a script where, it will open a new shell with a username / pwd and modify a file of same username and exit. example: 1. UserA 2. UserB- FileB ScriptA -> su UserB -> Modify FileB -> Exit ScriptA Can somebody give me a direction , on how to... (2 Replies)
Discussion started by: dashok.83
2 Replies

4. UNIX for Dummies Questions & Answers

Easy Script, just to find the given username if is it online or not

hey guys plz help me..with shell script. i must find the given(the user types a username) username if is it login or not.. i know how to do it logically, but i think that i can't in scripting. Thank you all (5 Replies)
Discussion started by: aintour
5 Replies

5. Programming

Using a script to check the login and username (html)

I made this named "confirm.sh":#/bin/sh #username and password are already given by the login form if ; then realpass=`cat /home/alex/Desktop/Myfirstsite/allpasses/$username` if ; then #continue with index.html else echo "Bad password" fi else echo "Unknown username" fi because I wanted... (4 Replies)
Discussion started by: hakermania
4 Replies

6. Shell Programming and Scripting

Asking username and password in the middle of the Shell/perl script

Can any body help me to find out the logic I have a script chkcomponent.pl Which give some output Like component1 userid: u1 component2 userid: u2 component3 userid: u1 . . #The no of components are different in different times run Now I want this chkcomponent.pl script... (1 Reply)
Discussion started by: pareshpatra
1 Replies

7. UNIX for Dummies Questions & Answers

Script to see if a username is valid.

This is my task: The argument enter on the command line is a first and last name ( for example: "John Smith"). If the argument is a validly formatted name, you display The "name enter" is valid to standard out. If the argument is not a validly formated name, you display The "name enter" is... (1 Reply)
Discussion started by: TheRealNapsta
1 Replies

8. Shell Programming and Scripting

sh script to get unix username of person executing it

Hi, I am writing a script, and I need to incorporate some logic where I can find out the unix username of the person who is executing the script. The issue is , a particular user could have "sesu" ed into a group id. for eg. root, and then executed the script. In that case, instead of root,... (5 Replies)
Discussion started by: neil.k
5 Replies

9. Shell Programming and Scripting

Q: grab email username from script

Hi all, I want to set up a script to email a person to confirm another program is running but i wish to avoid having to customise the script for each individiual. I am ok with what i need to do except i need to get the first and last name of the user to construct an email address to send to.... (6 Replies)
Discussion started by: KlintJ
6 Replies

10. Shell Programming and Scripting

How to send Two different password in Single script, having same username..?

Hi Team, i want to input two password for single node like pass1/pass2 one of the pass1 is working some node and pass2 is working for some nodes . For nodes having pass1 i have to run different script and for nodes having pass2 i have to run different script Sooo how can put two pass... (3 Replies)
Discussion started by: Ganesh Mankar
3 Replies
miproconfig(1M) 														   miproconfig(1M)

NAME
miproconfig - Mobile IPv4 Route Optimization daemon configuration utility SYNOPSIS
[ conf_file ] display_file ] DESCRIPTION
is a configuration tool for Mobile IPv4 Route Optimization daemon, miprod(1M). The tool gathers data from the user and generates configu- ration files formatted specifically for Only root user can run Options recognizes the following command-line options and arguments: conf_file This will start a configuration session. If conf_file is not provided, is used as default. If the target file exists, then its contents are read and stored in the session records. The process of reading the file is similar to the option (non-fatal errors will be flagged and fatal errors will cause immediate termination of the process). If the file does not exists, session records are initialized to zero and the user can create a new file from scratch. Note that specifying conf_file does not necessarily imply that the file will be modified; the user will have to explicitly commit session records. The user can specify any file name at that time. Displays the contents of a configuration file. If a file is not specified, the contents of will be displayed (if the file exists). informs the user of any syntax or data type errors in the file. Fatal errors will cause immediate termination of the reading process and all data read up to this point will be displayed to the user. The tool restricts the size of each line of the file to 250 characters and the maximum length of any non-commented token to 60 characters. Commands sessions support the following commands. For commands that take arguments, user can input arguments in the novice mode by entering the command name without any arguments. In novice mode, user can get help for any input by typing in "?" at the prompt. commands can be classified into three categories. Users are required to input values for command arguments unless the descriptions state when input is not required, or describe the default behavior of when the information is not configured. Configuration Commands These commands are of the form: and The commands can be used to configure or update individual sets of information (e.g. a Tunnel Inter- face). The commands can be used to delete one or more sets of information (for example, multiple Home Agents). (Abbr.: Configure or update a Home Agent. This command will automatically configure the replay protection scheme to Timestamps. ip_addr IP address of Home Agent. Index to identify the Security Association (SA) between the Home Agent and Must be a positive 32-bit integer greater than 255 and match the SPI configured on the Home Agent. The algorithm association with this Security Association (SA). The input "md5" configures the MD5 algorithm while the input "hmac-md5" configures the HMAC-md5 algorithm. By default mipconfig con- figures the HMAC-md5 algorithm. Used by to authenticate the Home Agent's identity. This 128-bit value should be specified as a sequence of 16 2-digit hex values separated by spaces. Or, an input of "random" will generate a random key for the user. This key must match the key configured on the Home Agent. (Abbr.: Configure or update an interface whose IP address will be used as the source of all tunnels created by This configuration informa- tion is optional. If not entered, will do a call to determine an IP address to use as the source address for all tunnels. name Name of interface (maximum 16 characters) whose address will be used as the source of all tunnels. Users will be warned if interface is not on the machine (UP, not POINTOPOINT or LOOPBACK). Primary address of interface. Constitutes source address of all tunnels created by The user needs to input this information if the interface is not (UP, not POINTOPOINT or LOOPBACK). (Abbr.: Delete one or more Home Agents. ip_addr IP address of Home Agent to delete. Omit this input to delete all Home Agents. (Abbr.: Delete interfaces configured as source of tunnels. (Abbr.: Delete all session records. List Commands These commands list information for various configuration data. (Abbr.: Display information for one or more Home Agents. ip_addr IP Address of Home Agent to list. Omit this input to list all Home Agents. (Abbr.: Display information for interface configured as source of tunnels created by (Abbr.: Display all session data. Session Commands The remaining commands can be classified as session commands. (Abbr.: Perform bulk configuration using commands from a file. Users should ensure that the commands in the file are valid. conf_file Name of the file that contains configuration commands. (Abbr.: Create a configuration file for from session data. Users will be warned if configuration data is incomplete or not matching system parameters. filename Name of the file to create. (Abbr.: Exit from This switch must be specified to force the command when there is unsaved data. (abbr.: Obtain syntax and brief description of commands. Use this switch as the first argument to get help on any arguments of command. This switch applies to every command specified by the user. command Command for which help is needed. User may repeat this argument as needed. Omit this argument to get list of all commands supported. (Abbr.: Clear the session display screen (similar to the command). (Abbr.: Display overview of process to configure (Abbr.: Display name and address of all interfaces on the system (UP, not POINTOPOINT or LOOPBACK). This command may be used to correctly configure the tunnel source interface. EXAMPLES Start a miproconfig session by reading Configure a Home Agent 123.5.6.4 with spi 500 and a specific key Delete Home Agent 123.5.6.8 Quit session without saving file. Display contents of default configuration file Example Sessions Configure a Correspondent Node in a network with one Home Agent, 15.15.15.4. (The network topology was simplified for the purposes of this example.) # miproconfig Creating /var/adm/mip/miprod.conf miproconfig> c h 15.15.15.4 -spi 1025 -k r Random key: 6c 4e 8d 26 25 72 82 2b b3 ad 35 63 5b 70 4e d0 NOTE: replay protection for Home Agent 15.15.15.4 has been set to timestamps miproconfig> write Configuration file name (/var/adm/mip/miprod.conf): <CR> miproconfig> quit # AUTHOR was developed by Hewlett-Packard Company. SEE ALSO miprod(1M), miprod.conf(4). miproconfig(1M)
All times are GMT -4. The time now is 10:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy