Sponsored Content
Top Forums Shell Programming and Scripting How to provide auto inputs for a sub-script within a script? Post 302891343 by fpmurphy on Wednesday 5th of March 2014 08:35:47 AM
Old 03-05-2014
Why not simply modify the db_tools script so that it no longer asks for user input but takes the defaults that you want?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Shell Script to Auto Run PHP Script

Hello All! I am looking to build a monitoring script. The script should always run as a system service of some type and should always check that a PHP script is running. Maybe there is a way to assign a PHP script to a certain PID so that the monitor script that check for the PID in top... (4 Replies)
Discussion started by: elDeuce
4 Replies

2. Shell Programming and Scripting

provide a user password from a script

Hi all, passwd <username> < /var/adm/passwd.txt cat /var/adm/passwd.txt abcd1234 abcd1234 when I run this from the script, it comes with: New password: It is not able to pick from the location /var/adm/passwd.txt. thanks in advance. (6 Replies)
Discussion started by: solaix14
6 Replies

3. Shell Programming and Scripting

need inputs on how i can change my script to reduce amount of time the script takes

HI , I have a list1 which consists of data that i have to search and a list2 which has the files that need to be searched .So basically i am using list1 on list2 to see if list1 data is present if found replace it .I have written the code using foreach loop for each list .This is taking the... (1 Reply)
Discussion started by: madhul2002
1 Replies

4. Shell Programming and Scripting

Provide input in sqlplus script

Hi guys. I m creating scripts which input multiple value , inside sqlplus script when it prompt/accept do anybody know how to provide multiple value inside sqlplus script when it prompt. like, enter value for first: enter value for second: enter value "save file as " : I m try... (11 Replies)
Discussion started by: tapia
11 Replies

5. Shell Programming and Scripting

Please provide me with a KSH script.

Hi frnds Im new to unix. I have an xml like the following: <?xml version="1.0"?> <serviceFeeDetail> <Data> <totalAmount>40</totalAmount> </Data> <serviceFee> <invoiceBillGrpNbr>1</invoiceBillGrpNbr> <serviceFeeLineItem> <billLineNbr>1</billLineNbr> ... (2 Replies)
Discussion started by: balesh
2 Replies

6. Shell Programming and Scripting

Perl script for taking inputs from one script and storing them into a document.

Hi. I wanted to create a Perl script which can take the outputs of a Perl script as it's input and temporarily store them in a document. Need help. Thanks.:) (8 Replies)
Discussion started by: xtatic
8 Replies

7. Shell Programming and Scripting

How to provide stdin from one script to another script?

Dear all I have a scripts call "script.sh", that I need to provide 3 params from stdin i.e. # script.sh Please input first name : Hello Please input last name : Kitty Please input sex : F Without changing script.sh, I want to write another script call "script_slient.sh", that will... (6 Replies)
Discussion started by: on9west
6 Replies

8. Shell Programming and Scripting

Script to provide percentages?

so i'm have been stifled here inn my attempts at this. i need to calculate an unusual figure. what is the percentage difference between 400 and 3? usually, to get the percentage, you just divide the smaller number by the bigger number. then multiply the answer by 100. in this case... (10 Replies)
Discussion started by: SkySmart
10 Replies

9. Shell Programming and Scripting

Provide 2 inputs when prompts

Hi All, I am a novice to UNIX, i need to know is there a way to provide 2 inputs when the shell prompts and i need to assign those 2 values to 2 separate variables. I dont want to give those values as a arguments (while running the script). Thanks in advance!! (1 Reply)
Discussion started by: prasanna2166
1 Replies

10. Shell Programming and Scripting

Can any one provide shell script for this ...

• With this script, users will be able to o Enter into the recycle bin mode. During this mode, all files deleted will be sent to the recycle bin. The recycle bin will be common to all users. o View contents of the recycle bin (his/her file(s) only). o Retrieve a particular file from the recycle... (3 Replies)
Discussion started by: bhavana busetty
3 Replies
DEFAULTS(1)						       GNUstep System Manual						       DEFAULTS(1)

NAME
defaults - read or modify GNUstep user defaults SYNOPSIS
defaults [ action ] DESCRIPTION
The 'defaults' command lets you to read and modify a user's defaults. This program replaces the old NeXTstep style dread, dwrite, and dremove programs. If you have access to another user's defaults database, you may include '-u username' before any other options to use that user's database rather than your own. defaults read [ domain [ key] ] read the named default from the specified domain. If no 'key' is given - read all defaults from the domain. If no 'domain' is given - read all defaults from all domains. A domain is either an application name, or "NSGlobalDomain", for system level defauts. (Running programs can access two other domains, "NSArgumentDomain", for command line arguments, "NSRegistrationDomain", a second- chance domain in which "defaults for defaults" can be registered, and possibly domains for specific locales.) defaults readkey key read the named default from all domains. defaults write domain key value write 'value' as default 'key' in the specified domain. 'value' must be a property list in single quotes. defaults write domain dictionary write 'dictionary' as a replacement for the specified domain. 'dictionary' must be a property list in single quotes. defaults write reads standard input for defaults in the format produced by 'defaults read' and writes them to the database. defaults delete [ domain [ key] ] remove the specified default(s) from the domain. If no 'key' is given - delete the entire domain. defaults delete read standard input for a series of lines containing pairs of domains and keys for defaults to be deleted. defaults domains lists the domains in the database (one per line) defaults find word searches domain names, default names, and default value strings for those equal to the specified word and lists them on standard output. defaults plist output some information about property lists defaults help list options for the defaults command. FILES
~/GNUstep/Defaults/.GNUstepDefaults holds defaults for a user BUGS
None known. DIAGNOSTICS
Hopefully self-explanatory. HISTORY
The 'defaults' command appeared in OpenStep and combined the capabilities of the earlier NeXTstep commands 'dread', 'dwrite', and 'dremove'. The GNUstep version was written in 1998. This manual page first appeared in gnustep-base 1.9.2 (March 2004). AUTHORS
defaults was written by Richard Frith-Macdonald <rfm@gnu.org> GNUstep February 2004 DEFAULTS(1)
All times are GMT -4. The time now is 08:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy