Sponsored Content
Full Discussion: [ask] about unset variables
Top Forums Shell Programming and Scripting [ask] about unset variables Post 302578139 by balajesuri on Thursday 1st of December 2011 01:09:44 AM
Old 12-01-2011
Usually programmers worried about performance and efficiency would opt for a robust programming language like C or its siblings. Scripts are usually (I'd dare not say "only") used for achieving relatively smaller tasks.

A comical side note: You may do what it takes to possess the three great virtues of a programmer - laziness, impatience, and hubris Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to unset 'finger' info?

Hi, Command "chfn" can be used to change finger information.. can anybody tell me how to unset i mean reset the same finger information. Thanks in advance, Chanakya (3 Replies)
Discussion started by: Chanakya.m
3 Replies

2. UNIX for Advanced & Expert Users

how to unset the readonly variable

Hi All, May be this is a very simple question... $ b=8 $ readonly b $ echo $b 8 $ b=90 -bash: b: readonly variable $ unset b -bash: unset: b: cannot unset: readonly variable I m not able to change the readonly mode of variable b Please help me out.. Thanks Nidhi (2 Replies)
Discussion started by: Nidhi2177
2 Replies

3. Shell Programming and Scripting

How to unset all variables in shell?

can I use unset to unset all the variables in a shell sciprt? VAR1=1 VAR2=2 VAR3=3 unset whether this unset will afftect any system variables? Thanks, (3 Replies)
Discussion started by: balamv
3 Replies

4. Shell Programming and Scripting

How to check exit status of unset variables

Hi All, Is there any way to check exit status of unset variables? In the following code PathX is not set and the script terminates without checking exit status. #!/bin/bash Path="/tmp/log" cd ${PathX:?} if ;then echo "Exit Status : non zero" else echo "Exit Status :... (2 Replies)
Discussion started by: sussus2326
2 Replies

5. UNIX for Advanced & Expert Users

unset .bashrc

Could someone please tell me how to unset your .bashrc? I have tried all of these. I can't find anything useful from google. unset -f .bashrc unset .bashrc (9 Replies)
Discussion started by: cokedude
9 Replies

6. Shell Programming and Scripting

Unset variables in shell when it running two different loops

I have a script to start/stop/restart the tomcat application. When we run the script first time i.e stop/start it set all env variables(DISTRIB_ID,NAME,TOMCAT_CFG,....etc),but when we restart the tomcat it is running in the same shell.....I need to set the variables when i restart the tomcat(in the... (1 Reply)
Discussion started by: praveen265
1 Replies

7. Shell Programming and Scripting

Unset variable with characters in value

I have a script with a $PASSWORD variable. I unset it right after using it, just to minimize the chance it could be left around for a snooper. That worked just fine... until I used a password with a value of "P@ssw0rd" Now, unset (even with -f, even with the variable enquoted) tells me: unset:... (1 Reply)
Discussion started by: jnojr
1 Replies

8. Shell Programming and Scripting

Listing all local variables for unset

I have tried to thoroughly search other threads before posting this question... I have a shell script (bsh) that I'd like to "re-execute" if the user chooses to. Before the program is executed again the local variables (those set within the script) need to be unset. Is there a command that... (6 Replies)
Discussion started by: powwm
6 Replies

9. UNIX for Dummies Questions & Answers

Unset environement variable

Hi, I have the following line in the script unset _SET_ENV_AA unset _SETENV but where I can check the value for this environement variable (2 Replies)
Discussion started by: stew
2 Replies

10. UNIX for Dummies Questions & Answers

Where unset command locates?

Hi, Can someone tell what is the path for "unset", I tried "which" command but getting below error # which unset /usr/bin/which: no unset in (/usr/lib/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin/:/root/bin) (9 Replies)
Discussion started by: stew
9 Replies
avrp(1) 						      General Commands Manual							   avrp(1)

NAME
avrp - Atmel AVR programming software to use with Atmel's serial-port programmers SYNOPSIS
avrp [-s <serial port>] [-a <chip type>] [-prv] [-f <filename>] [-e <filename>] [-d <deffile>] [-l <lockmode>] [--enable <fuse>] [--dis- able <fuse>] [--version] [--help] [-qIh] DESCRIPTION
avrp works on serial-port programmers which use Atmel's communication protocol for serial-port programmers. These programmers can program AVR (and other) chips both in serial and parallel mode. These programmers are known: AVR ICP - Atmel In-circuit programmer AVR PPR - Atmel parallel programmer AVR DEV - Atmel development board AVR A.G - Parallel mode programmer by Adrian Godwin Adrian Godwin's programmer can be found on http://www.fangorn.demon.co.uk Instruction on how to build Atmel's in-circuit programmer can be found on Atmel's homepage (http://www.atmel.com). Look for application note avr910 avrp is currently supporting these systems: Linux FreeBSD AmigaOS win32 (windows 95++ and NT) The source-code part of Atmel's application note AVR910 was used to determine how to communicate with these programmers. OPTIONS
Several option can be given after one '-', but if an option requires an argument; the argument must be given after that option. -s <serial port> Specifies which serial port to talk through. This option can be avoided if you set the environment variable AVRP_SERIALPORT -a <chip type> Specifies what kind of chip to talk to. Use '-a list' for chip type to get a list of supported devices. You can use the shortest possible abbreviation to identify a chip. This option can be avoided if you set the environment variable AVRP_AVRTYPE -p Program a chip -f <filename> and/or -e <filename> must be specified to determine which files to read from. (-f specifes flash, and -e eeprom) -r Read a chip -f <filename> and/or -e <filename> must be specified to determine which files to write to. (-f specifes flash, and -e eeprom) -v Verify. Performs a standalone verify. (The program function will always do a inline verify) -f <filename> and/or -e <filename> must be specified to determine which files to read from. (-f specifes flash, and -e eeprom) -f <filename> Specifies which flash-file to read/write. Supportet formats are Intel HEX and Atmel's generic fileformat. -e <filename> Specifies which eeprom-file to read/write. Supportet formats are Intel HEX and Atmel's generic fileformat. -l <lockmode> Specifies lockmode to progam into the chip. Use '-l list' to get a list of possible lockmodes. -q Quiet. Don't write any progress information. Will speed up programming. -d <deffile> Specifies the path and filename of avrp.def if default location is not possible. Can also be set with the environment variable AVRP_DEFFILE -I Ignores the signature in the chip. This is very useful if the signature in the chip have been destroyed in some way. --enable <fuses> Enables specified fuses. --disable <fuses> Disables specified fuses. --autoinc You can use this to speed up programming on newer programmer firmware. --version Print out version information. --help -h Print out a short help text. FILES
/etc/avrp.def Definition file ENVIRONMENT
AVRP_SERIALPORT Specifies which serial port to use. AVRP_AVRTYPE Specifies chip to talk to. AVRP_DEFFILE Specifies the location of avrp.def EXAMPLES
Print out information on the programmer: avrp -s /dev/ttyS1 Same as above, but also give information on the inserted chip: avrp -s /dev/ttyS1 -a AT90S1200-D/E/F Program a chip (flash only, and using a short chip-descriptor): avrp -s /dev/ttyS1 -a 1200-d -p -f avr910.rom Read a chip (flash and eeprom, AVRP_SERIALPORT is set): avrp -a 8515 -rf test.hex -e test.eep.hex COPYRIGHT
Copyright (C) 1997-1998 Jon Anders Haugum This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. 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 for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. AUTHOR
Jon Anders Haugum <jonah@colargol.tihlde.hist.no> Version 1.0 beta 3 28 September 1998 avrp(1)
All times are GMT -4. The time now is 05:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy