Sponsored Content
Top Forums Shell Programming and Scripting Accessing the parameters of a shell script Post 302207215 by jim mcnamara on Thursday 19th of June 2008 10:55:34 AM
Old 06-19-2008
One good way is to use getopts with a case statement, rather than trying to find things blindly. If a parm is required, then in the case that matches it, set a variable like REQUIRED=1, so you can test for it later on.
 

10 More Discussions You Might Find Interesting

1. Solaris

Accessing the home directory in shell script

How can I access home directory in a shell script. I am writing a script which will delete the log files in each of the user's directory Krishan (1 Reply)
Discussion started by: krishan
1 Replies

2. Shell Programming and Scripting

Accessing var from .profile into shell script

I have defined variable in .profile file. This variable, I tried to use in a shell script for the same session. In Shell script it is not finding this variable, but the same variable on the console if I try to access by echo $var, it is giving me correct assigned value. Can anyone, please... (7 Replies)
Discussion started by: videsh77
7 Replies

3. UNIX for Dummies Questions & Answers

accessing shell script variable in file

Hi, I have a shell script in which there is a file conn_$temp where $temp has the pid of the shell script. in this shell script i have an embedded awk script that must read the file while ((getline < "conn_$temp") > 0) However due to the "$temp" in the file name, the awk script is... (6 Replies)
Discussion started by: HIMANI
6 Replies

4. Shell Programming and Scripting

Accessing variables of one shell script in another shell script

I have a variable $exe in a shell script file a.sh which I need to access in another shell script file b.sh. How can I do that? :rolleyes: Thanks!! (2 Replies)
Discussion started by: looza
2 Replies

5. Shell Programming and Scripting

Accessing aliases within a shell script

I am not able to access the aliases in my environment within a Python script. If I pass the alias to os.system(), I get a message saying "sh: x: not found". I've tried sourcing my .bashrc file in the script, but this does not work. I would perfer not to source my or any rc file because this... (9 Replies)
Discussion started by: cooldude
9 Replies

6. Shell Programming and Scripting

Accessing php script from shell script

Hi I'm a newb to php scripts. My task requires me to run a shell script from within the php script which I believe I've figured out. What I'm trying to do now is output something to the web page from the called shell script. when I use "echo" from the called shell script I don't get any output... (3 Replies)
Discussion started by: airon23bball
3 Replies

7. UNIX for Advanced & Expert Users

Accessing PL/SQL OUT variables in Korn Shell Script

Hello All, I was just wondering if there is any direct way to access PL/SQL OUT variables from Korn Shell Script. I could already figure out how to return a single value back from PL/SQL to Shell Script (using bind variable). But, what if we want to return multiple values? One option I... (4 Replies)
Discussion started by: bright_future
4 Replies

8. Shell Programming and Scripting

Accessing variables of one shell script in another shell script

Hi All, I have a shell script called sample1.sh where I have 2 variables. Now I have another shell script called sample2.sh. I want the variables in sample1.sh to be available to sample2.sh. For example. In sample1.sh I am finding the sum of 2 numbers namely a and b. Now I want to access... (2 Replies)
Discussion started by: rsendhilmani
2 Replies

9. Shell Programming and Scripting

call another shell script and pass parameters to that shell script

Hi, I basically have 2 shell scripts. One is a shell script will get the variable value from the user. The variable is nothing but the IP of the remote system. Another shell script is a script that does the job of connecting to the remote system using ssh. This uses a expect utility in turn. ... (2 Replies)
Discussion started by: sunrexstar
2 Replies

10. UNIX for Advanced & Expert Users

Accessing secured server using shell script

Hi, I was trying to connect secure server using SFTP, but end up in error. Im looking for a shell script which will connect my secured FTP server For EG: hostname = example.com username = fed password = pass port = 993 Destination = web Push some tar file into web folder which is in... (3 Replies)
Discussion started by: Paulwintech
3 Replies
tableau-parm(1) 														   tableau-parm(1)

NAME
tableau-parm - Tableau Write-blocking Bridge Query/Command Utility SYNOPSIS
tableau-parm [-r] device DESCRIPTION
tableau-parm is designed to interact with write-blocking forensics bridges produced by Tableau, LLC. It can be used to query bridges for various bridge and device data, as well as to disable DCO regions. OPTIONS
tableau-parm accepts the following parameters: -r Directs tableau-parm to permanently remove a DCO, if it exists. THIS WILL MODIFY THE STATE OF THE DRIVE. USE AT YOUR OWN RISK! (It is recommended for forensics investigations, that a full drive image be taken before this command is run, and then again afterward if a DCO was detected originally.) Note: after running this, you'll need to restart the Tableau bridge for it to correctly detect the changes. device Required argument. Specifies the device file for the bridge/drive to be queried. This must be a device presenting SCSI emulation. Under Linux, all USB and FireWire mass storage devices behave like SCSI devices. Once a bridge and drive are plugged in and powered on, one can generally find out what the device was dynamically mapped to by running: dmesg | tail -20 OUTPUT
tableau-parm generates simple output with one data value per line, interspersed with blank lines and section headers. This output format is subject to change. EXAMPLES
To query a bridge which is mapped to /dev/sda: tableau-parm /dev/sda To remove a DCO from the hard drive on /dev/sda: tableau-parm -r /dev/sda BUGS
Older versions of ATA and SATA Tableau firmwares didn't properly handle HPA and DCO on some types of drives. Be sure to upgrade your block- ers' firmwares using the firmware update utility, version 4.2 or later, which was released on July 5, 2007. This is not really a bug, but something to note: when a drive has both an HPA and DCO section, and the DCO is removed, the HPA is removed with it. This is how the bridge firmware works, and isn't something controlled by tableau-parm. Just something to be aware of. CREDITS
Copyright (C) 2007,2009 Timothy D. Morgan Copyright (C) 1999,2001,2006,2007 D. Gilbert tableau-parm was written by Timothy D. Morgan using portions of SCSI example code written by D. Gilbert. Tableau, LLC cooperated in the development of this tool by providing documentation on the proprietary SCSI interfaces and assisted in test- ing. Without their help, this tool would not have been possible. Tableau, LLC does not endorse or warrant this code in any way. LICENSE
Please see the file "LICENSE" included with this software distribution. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more details. SEE ALSO
hdparm(1) sdparm(1) Forensics Utilities 30 September 2009 tableau-parm(1)
All times are GMT -4. The time now is 01:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy