Sponsored Content
Full Discussion: Simply bash script
Top Forums Shell Programming and Scripting Simply bash script Post 302795957 by scribling on Thursday 18th of April 2013 04:02:46 PM
Old 04-18-2013
That works!

Thank you. That works well.

How can I set a variable with a space in it?
"dir 1" and "dir\ 1" don't work.
I'm interested if having spaces in the variable definition would also work.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Simply shell script question

Struggling to add numbers in shell script.. ie. a=3 b=4 c=$a + $b echo $c I thought this should give me 7 - but cannot see what wrong.. should be simple answer eh? (8 Replies)
Discussion started by: frustrated1
8 Replies

2. Shell Programming and Scripting

Setting basename and dirname variable to simply script.

Hello all, Can somebody explain to me how set up a basename and dirname variable to simplify this script. I currently have a 'infile' with the contents of FTTPDataPVC_ & BaaisDSLFeed. I need to add a basename and or dirname variable so that any additions can be made through the infile and not... (1 Reply)
Discussion started by: liketheshell
1 Replies

3. Shell Programming and Scripting

passing variable from bash to perl from bash script

Hi All, I need to pass a variable to perl script from bash script, where in perl i am using if condition. Here is the cmd what i am using in perl FROM_DATE="06/05/2008" TO_DATE="07/05/2008" "perl -ne ' print if ( $_ >="$FROM_DATE" && $_ <= "$TO_DATE" ) ' filename" filename has... (10 Replies)
Discussion started by: arsidh
10 Replies

4. Shell Programming and Scripting

how to make your bash script run on a machine with csh and bash

hi, i have a script that runs on bash and would like to run it on a machine that has csh and bash. the default setting on that machine is csh. i dont want to change my code to run it with a csh shell. is there any way i can run the script (written in bash) on this machine? in other words is there... (3 Replies)
Discussion started by: npatwardhan
3 Replies

5. UNIX for Dummies Questions & Answers

Im new to bash scriping and i found this expression on a bash script what does this mean.

# check host value regex='^(||1|2|25)(\.(||1|2|25)){3}$' if ')" != "" ]; then if ]; then echo host $host not found exit 4 fi elif ]; then echo $host is an invalid host address exit 5 fi espeacailly the top regex part? ---------- Post updated at 06:58 PM ---------- Previous update was... (1 Reply)
Discussion started by: kevin298
1 Replies

6. Shell Programming and Scripting

Different behavior between bash shell and bash script for cmd

So I'm trying to pass certain json elements as env vars and use them later on in a script. Sample json: JSON='{ "Element1": "file-123456", "Element2": "Name, of, company written in, a very weird way", "Element3": "path/to/some/file.txt", }' (part of the) script: for s... (5 Replies)
Discussion started by: da1
5 Replies

7. Shell Programming and Scripting

How to block first bash script until second bash script script launches web server/site?

I'm new to utilities like socat and netcat and I'm not clear if they will do what I need. I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes. I'm using Cygwin bash on Windows 10. My... (3 Replies)
Discussion started by: siegfried
3 Replies

8. Shell Programming and Scripting

Simply Bash Script to Confirm that there are 2 Files in Same Folder

Im looking for 2 Files -> *.WAV and *.wav with find . -name 'unavail.wav' -o -name 'unavail.WAV' I need to list the Folders that contains these 2 Files? Thx in advance (13 Replies)
Discussion started by: valdez
13 Replies

9. UNIX for Beginners Questions & Answers

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ? --- Post updated at 08:39 AM --- in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies

10. UNIX for Beginners Questions & Answers

Reverse prior batch job (without simply rewriting the script)

So, let's say I have a usual batch rename file like this: and I'd like to have a secon bat file, that can /reverse" the first. BUT, I don't want to simply "rewrite" it like move hello 254352426 but rather, have the new script take the source and destination and reverse it somehow... (6 Replies)
Discussion started by: pasc
6 Replies
qemuctl(1)																qemuctl(1)

NAME
qemuctl - Graphical control for qemu SYNTAX
qemuctl [-suspend-dir <dir>] [-suspend-file <filename>] [-qemu <qemu>] [-nowakeup] qemu-options DESCRIPTION
qemuctl is a gui that controls a qemu process with the built-in monitor of qemu. So you can change devices, suspend machines, save screen- shots, ... If you suspend a machine it will do the following macro: stop screendump "suspend-dir/suspend-file.ppm" savevm "suspend-dir/suspend-file.vm" commit quit You can afterwards resume the machine with: qemuctl -suspend-dir suspend-dir -suspend-file suspend-file your_qemu_options the suspend-files will then be deleted or qemuctl -loadvm suspend-dir/suspend-file.vm your_qemu_options Be aware that you can't use the "-monitor" option with qemuctl, because it needs the control over the monitor. The option "-serial stdio" can't be used, too. OPTIONS
-suspend-file <filename> This option is normaly used by qemuctl to support suspend and wakeup. qemuctl can then find the vm-state-file in its folders and wakeup the virtual machine. If the file is there the qemuctl waes up the virtual machine and deletes the file afterwards. On suspend the vm-state-file is then stored as the <filename> with the .vm ending and the screenshot is stored as the <filename> with the .ppm ending. Default filename is "suspend". -suspend-dir <dir> This is the dir where the suspend files would be stored or expected. Default is current dir. -nowakeup Don't wake up even if the vm-file is there. Suspend still works. Default is to wake up using the vm-file if it is there. -qemu <qemu> The qemu variation to use. It can be qemu or kvm. Default is qemu. qemu-options Use qemu-options for the launch of qemu. See qemu(1) for further details. FILES
none ENVIRONMENT VARIABLES
none EXAMPLES
To use the suspend file 'Debian 3.1' and store/search it in the '/qemu' dir: qemuctl -suspend-file "Debian 3.1" -suspend-dir "/qemu" -boot c -hda hda.raw Alternativly you can run it with default suspend filenames: qemuctl -boot c -hda hda.raw AUTHORS
Peter Rustler SEE ALSO
qemu(1) qemu-launcher(1) Peter Rustler 0.0.1 qemuctl(1)
All times are GMT -4. The time now is 11:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy