07-27-2007
Seperate commands on the same line
hello, is there a way to seperate commands that are on the same line?
ie: echo "yes count(*)>0:" $passvar > dsp cat dsp cat dsp > log
i'm trying to put these 3 commands on the same line, but when i do they all get concatenated into 1 lieteral
if i put the cat commands on different lines they work ok, but not when on the same line
is there some kind of seperator that will simulate a sperate line or something like that?
thanks for any insights!
BobK
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
wuts the command that allows u to use 2 commands on one line? (2 Replies)
Discussion started by: el_soldado
2 Replies
2. Shell Programming and Scripting
Hello
I'm very new to unix, am learning it as part of my new job.
I have a book which has a list in the back, of a number of commands and their command line flags, detailing what these flags are used for.
I've been looking everywhere for an electronic copy of this type of list, so I can... (4 Replies)
Discussion started by: Kedgeboy
4 Replies
3. UNIX for Dummies Questions & Answers
Hi to all,
I have a file with 1000 lines,Now i need to get 789th record.So please any one help me out from this.
Thanks in advance.
Sathish (3 Replies)
Discussion started by: bsathishmca
3 Replies
4. Shell Programming and Scripting
Hi I want to write the following code in 1 line:
a=1
if
then
echo ok
else
echo not ok
fi
The following does not work:
a=1 ; if \r then \r echo ok \r else \r echo not ok \r fi
or
Even if I replace \r by \n it does not work.
Please suggest. (11 Replies)
Discussion started by: miltonkeynesguy
11 Replies
5. UNIX for Dummies Questions & Answers
hi!
how do i run 2 command from the same line
e.g: 'which screen' and then ls -la 'which screen' (4 Replies)
Discussion started by: rdns
4 Replies
6. UNIX for Dummies Questions & Answers
I tried opening the windows command line and typing UNIX commands, but they don't work. It kept saying that it was not recognized as an internal or external command, operable program or batch file.
Removed strange sentence with even stranger link
I need to use UNIX commands such as 'less',... (9 Replies)
Discussion started by: vlay2
9 Replies
7. Shell Programming and Scripting
Hello, currently we are executing a .sh from terminal.
The current .sh looks like this:
#!/usr/bin/env bash
/Users/user/my.app/Contents/MacOS/my &
--
Now, we also need to run a third line in the .sh - It's a command line application that I need to run when I execute the above .sh... (0 Replies)
Discussion started by: yoyoyo777
0 Replies
8. UNIX for Dummies Questions & Answers
Hi There,
I have a cronjob that executes a small script (few lines) that I am certain can be achieved in a single line.
The functional objective is actually really simple;
cmd var1
The '1' in 'var1' is actually derived from date (day of month) but the snag is when working with 1-9 I... (3 Replies)
Discussion started by: Random79
3 Replies
9. Shell Programming and Scripting
Using ksh on AIX what I am trying to do is to read the ls -l output from a file in a do while loop line by line. Extract the user name(3rd field) and the directory/file name(9th field) using awk and save them into variables. su -c to the user and change directory/file permisions to 777. Script I... (13 Replies)
Discussion started by: zubairom
13 Replies
10. Programming
Hi All,
I have line
,A,FDRM0002,12/21/2017,,0.961751583,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
it contains date in mm/dd/yyyy format i want to change this to yyyymmdd format using perl.
Use code tags, thanks. (8 Replies)
Discussion started by: vishal0746
8 Replies
padsp(1) General Commands Manual padsp(1)
NAME
padsp - PulseAudio OSS Wrapper
SYNOPSIS
padsp [options] PROGRAM [ARGUMENTS ...]
padsp -h
DESCRIPTION
padsp starts the specified program and redirects its access to OSS compatible audio devices (/dev/dsp and auxiliary devices) to a PulseAu-
dio sound server.
padsp uses the $LD_PRELOAD environment variable that is interpreted by ld.so(8) and thus does not work for SUID binaries and statically
built executables.
Equivalent to using padsp is starting an application with $LD_PRELOAD set to libpulsedsp.so
OPTIONS
-h | --help
Show help.
-s SERVER
Set the PulseAudio server to connect to.
-n NAME
The client application name that shall be passed to the server when connecting.
-m NAME
The stream name that shall be passed to the server when creating a stream.
-M Disable /dev/mixer emulation.
-S Disable /dev/sndstat emulation.
-D Disable /dev/dsp emulation.
-d Enable debug output.
AUTHORS
The PulseAudio Developers <mzchyfrnhqvb (at) 0pointer (dot) net>; PulseAudio is available from http://pulseaudio.org/
SEE ALSO
pulseaudio(1), pasuspender(1), ld.so(8)
Manuals User padsp(1)