Sponsored Content
Full Discussion: Simple BASH script?
Top Forums Shell Programming and Scripting Simple BASH script? Post 302138639 by porter on Tuesday 2nd of October 2007 06:21:18 PM
Old 10-02-2007
Code:
....
             /usr/local/production/temp/newfolder/third-file.sh \
             /usr/local/production/temp/newfolder/fourth-file.sh
do
     $d
     RC=$?
     if test "$RC" != "0"
     then
          echo "continue? [y]/n"
.....

You missed
(a) don't put \ on the last item of the list
(b) the "do"
(c) the running of the command itself

Smilie

Last edited by porter; 10-02-2007 at 07:30 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Simple Bash Script

I'm sure I'm doing something wrong but as I am new to bash shell scripting I'm not sure what: Here's the code webalizer.conf is sitting in the same directory as this file which is named webalizer.sh. Can someone tell me if I've got the syntax right -- it that's correct? I'm executing the... (3 Replies)
Discussion started by: xaphalanx
3 Replies

2. Shell Programming and Scripting

simple bash script

I am writing a shell script in bash one of the thing I want to show is size of export /home du -sk /export/home/oracle | cut -c 1-5 echo "kbytes" when I run the script kbytes shows up in the second line, How can I append kbytes on the same line, such as 61233 kbytes please guide thanks (2 Replies)
Discussion started by: Tirmazi
2 Replies

3. Shell Programming and Scripting

Simple BASH script not working?

So I need a script that does the following: If a certain user is logged in Run `command` Else Echo “incorrect user” This is my first stab...which doesn't work: #!/bin/bash X="user=`ls -l /dev/console | cut -d " " -f 4`" Y="foobar" echo $X echo $Y (4 Replies)
Discussion started by: doubleminus
4 Replies

4. Shell Programming and Scripting

simple bash script permission

I have a bash script, but it needs to have a simple protection with password. So if a user wants to run the script , there should be a kdialog to asks for a password.If the password is correct the script starts to run. It should not be the passord of root or another admin user.Just a password in... (2 Replies)
Discussion started by: poort
2 Replies

5. Shell Programming and Scripting

Help with writing simple bash script

I want to write a bash script to: 1. Send an email from localhost to an external gmail account. (gmail then automatically forwards the message back to a pop account on the same server. 2. Script waits 3 minutes then checks to see if the email arrived, and if not, it sends an email to... (9 Replies)
Discussion started by: sallyanne
9 Replies

6. Shell Programming and Scripting

need a simple bash script

to gather the cpu utilization from a system in 5 minute intervals and direct output to file. I'm new at scripting and while this seems like an easy task I'm confused on where to start. thanks for any help (1 Reply)
Discussion started by: mkeyes001
1 Replies

7. Shell Programming and Scripting

Simple bash script help

Hi to everyone here, I'm a new user and relatively-new linuxer. I'm trying to write a script that checks if every file from a directory is present in a given list and if not, delete it. should be simple. But I think I've done half the work only: this is to create the reference list: for c... (2 Replies)
Discussion started by: dentex
2 Replies

8. Shell Programming and Scripting

Stumped on simple BASH Script

Hello All, First and foremost, if I have posted this question in the wrong forum/section, I apologize. Okay so here is my dilemma. I have written a BASH script that automatically restarts a tomcat on a given server. That part was simple enough. However, now I would like to not only restart... (14 Replies)
Discussion started by: UNM_Lobo
14 Replies

9. Shell Programming and Scripting

Help making simple perl or bash script to create a simple matrix

Hello all! This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician. Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix: ... (16 Replies)
Discussion started by: torchij
16 Replies

10. Shell Programming and Scripting

Simple Bash Script - Crontab

I've put together a very simple bash script to check for software patches and bounce the server, once complete. This is on a Mac server. The script works just fine upon execution, however, cron responds with: /bin/sh: /usr/local/bin/softwareupdates.sh: No such file or directory Crontab: ... (6 Replies)
Discussion started by: Nvizn
6 Replies
audacity(1)						      General Commands Manual						       audacity(1)

NAME
audacity - Graphical cross-platform audio editor SYNOPSIS
audacity -help audacity -version audacity [-blocksize nnn] -test audacity [-blocksize nnn] [ AUDIO-FILE ] ... DESCRIPTION
Audacity is a graphical audio editor. This man page does not describe all of the features of Audacity or how to use it; for this, see the html documentation that came with the program, which should be accessible from the Help menu. This man page describes the Unix-specific features, including special files and environment variables. Audacity currently uses libsndfile to open many uncompressed audio formats such as WAV, AIFF, and AU, and it can also be linked to libmad, libvorbis, and libflac, to provide support for opening MP2/3, Ogg Vorbis, and FLAC files, respectively. LAME, libvorbis, libflac and libt- wolame provide facilities to export files to all these formats as well. Audacity is primarily an interactive, graphical editor, not a batch-processing tool. Whilst there is a basic batch processing tool it is experimental and incomplete. If you need to batch-process audio or do simple edits from the command line, using sox or ecasound driven by a bash script will be much more powerful than audacity. OPTIONS
-help display a brief list of command line options -version display the audacity version number -test run self diagnostics tests (only present in development builds) -blocksize nnn set the audacity block size for writing files to disk to nnn bytes FILES
~/.audacity-data/audacity.cfg Per user configuration file. /var/tmp/audacity-<user>/ Default location of Audacity's temp directory, where <user> is your username. If this location is not suitable (not enough space in /var/tmp, for example), you should change the temp directory in the Preferences and restart Audacity. Audacity is a disk-based edi- tor, so the temp directory is very important: it should always be on a fast (local) disk with lots of free space. Note that older versions of Audacity put the temp directory inside of the user's home directory. This is undesirable on many sys- tems, and using some directory in /tmp is recommended. On many modern Linux systems all files in /tmp/ will be deleted each time the system boots up, which makes recovering a recording that was going on when the system crashed much harder. This is why the default is to use a directory in /var/tmp/ which will not normally be deleted by the system. Open the Preferences to check. SEARCH PATH
When looking for plug-ins, help files, localization files, or other configuration files, Audacity searches the following locations, in this order: AUDACITY_PATH Any directories in the AUDACITY_PATH environment variable will be searched before anywhere else. . The current working directory when Audacity is started. ~/.audacity-files <prefix>/share/audacity The system-wide Audacity directory, where <prefix> is usually /usr or /usr/local, depending on where the program was installed. <prefix>/share/doc/audacity The system-wide Audacity documentation directory, where <prefix> is usually /usr or /usr/local, depending on where the program was installed. For localization files in particular (i.e. translations of Audacity into other languages), Audacity also searches <prefix>/share/locale PLUG-INS Audacity supports two types of plug-ins on Unix: LADSPA and Nyquist plug-ins. These are generally placed in a directory called plug-ins somewhere on the search path (see above). LADSPA plug-ins can either be in the plug-ins directory, or alternatively in a ladspa directory on the search path if you choose to create one. Audacity will also search the directories in the LADSPA_PATH environment variable for additional LADSPA plug-ins. Nyquist plug-ins can either be in the plug-ins directory, or alternatively in a nyquist directory on the search path if you choose to cre- ate one. VERSION
This man page documents audacity version 1.3.5 LICENSE
Audacity is distributed under the GPL, however some of the libraries it links to are distributed under other free licenses, including the LGPL and BSD licenses. BUGS
For details of known problems, see the release notes and the audacity wiki: http://www.audacityteam.org/wiki/index.php?title=Known_Issues To report a bug, see the instructions at http://www.audacityteam.org/wiki/index.php?title=Reporting_Bugs AUTHORS
Project leaders include Dominic Mazzoni, Matt Brubeck, James Crook, Vaughan Johnson, Leland Lucius, and Markus Meyer, but dozens of others have contributed, and Audacity would not be possible without wxWindows, libsndfile, and many of the other libraries it is built upon. For the most recent list of contributors and current email addresses, see our website: http://audacity.sourceforge.net/about/credits/ audacity(1)
All times are GMT -4. The time now is 02:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy