Sponsored Content
Special Forums Windows & DOS: Issues & Discussions Problems With User Creation Script Post 302762215 by Hammadi dali on Monday 28th of January 2013 08:53:17 AM
Old 01-28-2013
it is a problem of parenthesis positionning :
Code:
@echo off
 SET /P deleteorkeep="This username %%i already exists, press d to delete the account and files, press k to delete the account but rename the files folder with a suffix of _old:" 
IF /i "%deleteorkeep:~,1%" EQU "d" (      ECHO delete    )
   IF /i "%deleteorkeep:~,1%" EQU "k" (   ECHO keep     
   ) ELSE (     
   NET USER %%i %%i /add     )

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

user creation using shell script for JSP

hello friends, I have problem. We want to create user from jsp(browser based) on our linux server. How we can do that ? or How do we create a user with shell programming by taking arguments and checking with the existing users and if the user exist it should display the message the user exists... (1 Reply)
Discussion started by: jarkvarma
1 Replies

2. Solaris

User creation

Hi all, I want to create one user with full permissions to one directory called /opt/tivoli/tsm/client/ba/bin. Name for the user Tivoli Thanks & Regards Babu (7 Replies)
Discussion started by: lbreddy
7 Replies

3. Shell Programming and Scripting

Help in Shell scripting to modify the User Creation script in oracle database.

Hi, I have several users to create on my test Oracle database taking the scripts from the Production Oracle database. I have a separate text file where I have user-id and passwords maintained. I need help in writing a shell script to go thru the user creation scripts and replace VALUES... (1 Reply)
Discussion started by: rparavastu
1 Replies

4. Solaris

Need help with user creation

Hello guys, i have a problem where i cant create a user and here some problem that i encounter. 1. /etc/passwd seems locked. 2. getting this error UX: useradd: ERROR: Cannot update system files - login cannot be created. # useradd -u 47367 -g 1084 -c "user123" -d /local/home/user123 -s... (2 Replies)
Discussion started by: brew
2 Replies

5. Shell Programming and Scripting

User creation script

Hi Gems.. I am working out on project of creating a mass user on 100 server. Please help me with script where i can create an user id of new 80 user using shell script Thanks in advance. Indrajit Bhagat (1 Reply)
Discussion started by: indrajit_renu
1 Replies

6. UNIX for Advanced & Expert Users

Can we Automate the User creation and setting password through a script in solaris 10

Hi, I am using Solaris 10 OS and Bash shell.Is there any way can we automate User creation and setting passwords through a script or any freeware tool. Advance thanks for your response. (1 Reply)
Discussion started by: muraliinfy04
1 Replies

7. Solaris

Package creation problems with Source files

Hi, I am creating "LSOF" solaris package from solaris "source" files. I have compiled the source file and with that i created prototype file also. Then using pkgmk command i can make the package . In the package i am having (pkginfo pkgmap reloc) two file and one directory respectively But... (3 Replies)
Discussion started by: Kathirvel G
3 Replies

8. Shell Programming and Scripting

Bash shell script for user creation in solaris

Hi All, I am new to shell scripting and have a task which need to be completed ASAP. I have searched all the forum and couln't find excat script which could run on solaris.can someone give me the fully working script for below. Bash shell script to create user account with paraments as... (1 Reply)
Discussion started by: sintilash
1 Replies

9. AIX

PowerVM/lpar creation problems

Hi, I'm a newbie to PowerVM and LPARs ( I work with VmWare and Oracle VM Server for Sparc) .recently we purchased an 8202-e4b server, with two enclosures for add'l disk capacity. it is licensed for PowerVM standard,came preloaded as such, AIX 7.1. I've set up HMC v8.2, and run it through a VM on... (30 Replies)
Discussion started by: computron
30 Replies

10. Shell Programming and Scripting

Shell script for user account Creation

Hi Folks, I had a request to create the user request. Between, I just write a script a create, Update Geos, and update the password. My script as below: The error message, what I am getting is all the users are updated with the same Goes value.. #!/bin/bash for i in `cat users.txt`;do... (2 Replies)
Discussion started by: gsiva
2 Replies
Vend::Payment::ECHO(3pm)				User Contributed Perl Documentation				  Vend::Payment::ECHO(3pm)

NAME
Vend::Payment::ECHO - Interchange ECHO Support AUTHOR
Michael Lehmkuhl <michael@electricpulp.com>. Ported to Vend::Payment by Dan Browning <db@kavod.com>. Code reused and inspired by Mike Heins <mike@perusion.com>. SPECIAL THANKS
Jim Darden <support@openecho.com>, Dan Browning <db@kavod.com> SYNOPSIS
&charge=echo or [charge mode=echo param1=value1 param2=value2] PREREQUISITES
If you have not done so already, you will need to sign up for an ECHO account. You will be provided an ID and a PIN (also known as 'secret'). You may also sign up for a test account at the following URL: http://www.echo-inc.com/echotestapp.php This subroutine uses the OpenECHO module. Make sure OpenECHO.pm is in your @INC array. It is available for download, see the following URLs: http://www.openecho.com/ http://www.echo-inc.com/ The OpenECHO.pm module itself has some additional prerequisites: Net::SSLeay or LWP::UserAgent and Crypt::SSLeay Only one of these need be present and working. Net::SSLeay is preferred as some have reported problems using LWP::UserAgent and Crypt::SSLeay. URL::Escape This module is used to write some of the URLs used by the OpenECHO module. It is recommended that you read the documention for the OpenECHO module itself in addition to this document. DESCRIPTION
The Vend::Payment::ECHO module implements the echo() routine for use with Interchange. It is compatible on a call level with the other Interchange payment modules. To enable this module, place this directive in "interchange.cfg": Require module Vend::Payment::ECHO This must be in interchange.cfg or a file included from it. NOTE: Make sure CreditCardAuto is off (default in Interchange demos). The mode can be named anything, but the "gateway" parameter must be set to "echo". To make it the default payment gateway for all credit card transactions in a specific catalog, you can set in "catalog.cfg": Variable MV_PAYMENT_MODE echo It uses several of the standard settings from Interchange payment. Any time we speak of a setting, it is obtained either first from the tag/call options, then from an Interchange order Route named for the mode, then finally a default global payment variable, For example, the "id" parameter would be specified by: Route echo id Your_ECHO_ID or (with only ECHO as a payment provider) Variable MV_PAYMENT_ID Your_ECHO_ID or Variable ECHO_PAYMENT_ID Your_ECHO_ID or [charge mode=echo id=Your_ECHO_ID] The active settings are: id Your account ID, supplied by ECHO when you sign up. Global parameter is MV_PAYMENT_ID or ECHO_PAYMENT_ID. secret Your account password, selected by you or provided by ECHO when you sign up. Global parameter is MV_PAYMENT_SECRET or ECHO_PAYMENT_SECRET. others... If planning to do AUTH_ONLY or other with special admin page Variable MV_PAYMENT_REMAP order_id=mv_order_id auth_code=mv_auth_code Variable ECHO_PAYMENT_ORDER_TYPE S # S for "self-service" orders # F for hosted or ISP orders Variable ECHO_PAYMENT_ISP_ECHO_ID 123<4567890 Variable ECHO_PAYMENT_ISP_PIN 12345608 Variable ECHO_PAYMENT_MERCHANT_EMAIL merchant@merchant.com Variable ECHO_PAYMENT_DEBUG F # C causes ECHO to return a statement of conformity # T or TRUE causes ECHO to return additional debug information # Any other value turns off ECHO debugging Example Configuration This is an example configuration that one would add to catalog.cfg: Variable MV_PAYMENT_ID Your_ECHO_ID Variable MV_PAYMENT_SECRET Your_ECHO_secret Variable MV_PAYMENT_MODE echo Troubleshooting Try a sale with the card number "4111 1111 1111 1111" and a valid expiration date. The sale should be denied, and the reason should be in [data session payment_error]. If nothing works: o Make sure you "Require"d the module in interchange.cfg: Require module Vend::Payment::ECHO o Make sure the ECHO "OpenECHO.pm" module is available either in your path or in /path_to_interchange/lib. o Check the error logs, both catalog and global. o Make sure you set your account ID and secret properly. o Try an order, then put this code in a page: <XMP> [calc] my $string = $Tag->uneval( { ref => $Session->{payment_result} }); $string =~ s/{/{ /; $string =~ s/,/, /g; return $string; [/calc] </XMP> That should show what happened. o If all else fails, Interchange consultants are available to help with integration for a fee. SECURITY CONSIDERATIONS
Because this library calls an executable, you should ensure that no untrusted users have write permission on any of the system directories or Interchange software directories. NOTES
There is actually nothing *in* Vend::Payment::ECHO. It changes packages to Vend::Payment and places things there. perl v5.14.2 2011-03-09 Vend::Payment::ECHO(3pm)
All times are GMT -4. The time now is 10:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy