Sponsored Content
Top Forums Shell Programming and Scripting Checking has for a command line argument Post 302815417 by sumguy on Friday 31st of May 2013 04:42:57 PM
Old 05-31-2013
Ok yeah. Thanks again.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

passing a command line argument

I have a shell script which does the encryption of a file where i am passing the file name as a command line argument,but later on the script waits on the screen to enter Y or N what is the command i should be using on the shell script #!/bin/bash -x outfilename=file.out echo... (8 Replies)
Discussion started by: rudoraj
8 Replies

2. Shell Programming and Scripting

How to get the value in last command line argument???

Say I want to get the value of last command line argument using the value in $# (or some other way if u can suggest) how do I do it?? $"$#" `$"$#"` These don't work :( (4 Replies)
Discussion started by: amit_oddey21
4 Replies

3. Shell Programming and Scripting

assign a command line argument and a unix command to awk variables

Hi , I have a piece of code ...wherein I need to assign the following ... 1) A command line argument to a variable e.g origCount=ARGV 2) A unix command to a variable e.g result=`wc -l testFile.txt` in my awk shell script When I do this : print "origCount" origCount --> I get the... (0 Replies)
Discussion started by: sweta_doshi
0 Replies

4. Programming

Command Line Argument

Hi, I have a very simple C program which will run in UNIX. When i am passing * as the command line argument, i am gettig the below output. Program: #include <stdio.h> #include "mylibrary.h" int **environ; int main(int argc,char *argv) { int i; printf("\nHello... (2 Replies)
Discussion started by: dsudipta
2 Replies

5. Shell Programming and Scripting

command-line line 0: Missing yes/no argument

Hi Guys When I run the below command ssh -o 'PasswordAuthentication yes' -o 'PreferredAuthentications publickey' -i $HOME/.ssh/id_dsa Server_Name I found the below error ommand-line line 0: Missing yes/no argument Kindly help me to sort out Double post, continued... (0 Replies)
Discussion started by: Pratik4891
0 Replies

6. Shell Programming and Scripting

command line argument - perl

how do i check if a command line argument is -g? for example, if command line argument equals "-g" { print "Goodbye \n"; } else { print "Welcome to the program! \n"; } (1 Reply)
Discussion started by: bshell_1214
1 Replies

7. Shell Programming and Scripting

Can a string be a command line argument?

I would like to use a string as a command line argument...is this possible using TCSH? For example say my script is called TEST and I would like to pass a string into my script stating why the test failed. EXAMPLE: TEST "Failed due to missing statement" (4 Replies)
Discussion started by: thibodc
4 Replies

8. Shell Programming and Scripting

Specify an entire UNIX command as a command line argument

I'm trying to write a bash script called YN that looks like the following YN "Specify a question" "doThis" "doThat" where "doThis" will be executed if the answer is "y", otherwise "doThat". For example YN "Do you want to list the file dog?" "ls -al dog" "" Here's my attempt... (3 Replies)
Discussion started by: LeoKSimon
3 Replies

9. UNIX for Beginners Questions & Answers

Command line argument

Hi Guys, I'm trying to work out how to add a command line argument inside single quotes. Would anyone be able to help please as I'm going mad :) I want to be able to place the filename on command line and it then be used in a script but it needs to have quotes surrounding it. Thanks in... (4 Replies)
Discussion started by: mutley2202
4 Replies

10. Shell Programming and Scripting

Add command line argument

I would like to add the ability to change the message that is displayed when timer is finished. At present it just asks for the time I want for the alarm. I think what I need is another command line argument. soundfile="/usr/share/sounds/My_Sounds/Alarm-sound-buzzer.mp3"... (5 Replies)
Discussion started by: drew77
5 Replies
mbmon(1)						      General Commands Manual							  mbmon(1)

NAME
mbmon - MotherBoard Monitor SYNOPSIS
mbmon [options] <seconds for sleep> (default 5 sec) This manual page documents briefly the mbmon command. This manual page was written for the Debian distribution because the original pro- gram does not have a manual page. Recent motherboards have functionalities to monitor the CPU temperatures and the frequency of CPU cooling fans etc. Although some programs utilizing these hardware monitoring facilities have been developed for the Microsoft Windows platforms, no programs seem to exist for PC- UNIX and the X Windows System platforms. mbmon used at the command line reports the temperatures, voltages and rpm (rounds per minute) of cooling fans. It can also be used remotely via telnet, thanks to the "-P" option. OPTIONS
-h Show summary of options. -V, -S, -I, -A Access method (using "VIA686 HWM directly"|"SMBus"|"ISA I/O port"|"All this methods"). -d Debug mode (any other options except (V|S|I) will be ignored). -e [0-2] set extra temperature sensor to temp. Need -A. -p chip For probing chips. chip=winbond|wl784|via686|it87|gl52|lm85|lm80|lm90|lm75 -Y For Tyan Tiger MP/MPX motherboard. -f Display temperature in Fahrenheit. -c count Repeat <count> times and exit. -P port Run in daemon mode, using given port for clients. -T|F [1-7] print Temperature|Fanspeed according to following styles: style1: data1 style2: data2 style3: data3 style4: data10ata2 style5: data10ata3 style6: data20ata3 style7: data10ata20ata3 -r Print TAG and Value format. -u Print system uptime. -t Print present time. -n, -N print hostname (long|short style). -i Print integers in the summary (with -T option). EXAMPLES
mbmon -P 11000; telnet localhost 11000; sudo killall mbmon mbmon -c1 mbmon 1 (yeah, real time baby !) SEE ALSO
/usr/share/doc/mbmon/* AUTHOR
This manual page was written by Nicolas Rueff <n.rueff@tuxfamily.org>, for the Debian project (but may be used by others). November 10, 2003 mbmon(1)
All times are GMT -4. The time now is 03:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy