11-15-2013
It would be easier if you provided some sample input & expected output/behaviour.
This User Gave Thanks to CarloM For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am testing a ksh script for email. In the script I receive several parameters. One of them is a subject. The subject may contain spaces. Ex. Test this. When I am running the script on telnet to test, how should the syntax at the command line be written. I have this:
ksh ResendE.sh '001111'... (2 Replies)
Discussion started by: supercbw
2 Replies
2. Shell Programming and Scripting
Hi,
I am a beginner in shell scripting. I have written the following script, which is supposed to process the while loop for each line in the sid_home.txt file. But I'm getting the 'end of file' unexpected for the last line. The file sid_home.txt gets generated as expected, but the script... (6 Replies)
Discussion started by: sagarparadkar
6 Replies
3. Shell Programming and Scripting
Hi Sorry to multipost. I am opening the new thread because the earlier threads head was misleading to my current doubt.
and i am stuck.
list=`cat /u/Test/programs`;
psg "ServTest" | awk -v listawk=$list '{
cmd_name=($5 ~ /^/)? $9:$8
for(pgmname in listawk)
... (6 Replies)
Discussion started by: Anteus
6 Replies
4. Shell Programming and Scripting
Hi,
I am trying to replace a specific column values in a csv file with double quotes when I am find embedded spaces with in the fields.
Example:
SNO,NAME,ZIPCODE,RANK,SEX,ADDRESS
1,Robert,74538,12,34, M,Robert Street, NY
2,Sam,07564,13,M,12 Main Ave, CA
3,Kim, Ed,12345,14,M,123D ,... (1 Reply)
Discussion started by: techmoris
1 Replies
5. UNIX for Dummies Questions & Answers
Hi
I'm trying to ensure that I have catered for all situations with my getopt cases.
One other situation I want to cover is should the user enter the script without any preceding arguments eg:
./script_eg
I need the script to the direct the user to the helpfile
I have tried... (3 Replies)
Discussion started by: ladyAnne
3 Replies
6. Shell Programming and Scripting
Hi everyone,
I have been a big fan here since a couple years (since I started being an admin ...) and finally decided to become a member and help ppl and perhaps being helped
Now I have a problem that might interest some of the gurus.
I am abig fan of what I call "one liners". I am trying... (2 Replies)
Discussion started by: plmachiavel
2 Replies
7. Shell Programming and Scripting
Hi, all
I have a file containing the following data:
name: PRODUCT_1
date: 2010-01-07
really_long_name: PRODUCT_ABCDEFG
I want to get the date (it is "2010-01-07" here), I could use the following code to do that:
awk... (6 Replies)
Discussion started by: kevintse
6 Replies
8. Shell Programming and Scripting
NOTE: I am using BASH and Solaris 10 for this.
Currently in the process of building a script that has a main "watcher" daemon that reads a configuration file and starts background processes based on it's global configuration. It is basically an infinite loop of configuration reading. Some of the... (4 Replies)
Discussion started by: dcarrion87
4 Replies
9. Shell Programming and Scripting
Hey, not too good at this, so I only managed a clumsy and SLOW solution to my problem that needs a drastic speed up. Any ideas how I write the following in awk only?
Code is supposed to do...
For every line read column values $6, $7, $8 and do a calculation with the same column values of every... (6 Replies)
Discussion started by: origamisven
6 Replies
10. Shell Programming and Scripting
I'm trying to handle some files with spaces in their name using "" or \ . Like "file 1" or file\ 1.
My current confusion can be expressed by the following shell script:
#!/bin/bash
touch "file 1" "file 2"
echo -n "ls: " ; ls
echo ---
for file in "file 1" "file 2" ; do
echo $file... (9 Replies)
Discussion started by: Ralph
9 Replies
pactl(1) General Commands Manual pactl(1)
NAME
pactl - Control a running PulseAudio sound server
SYNOPSIS
pactl [options] stat
pactl [options] list
pactl [options] exit
pactl [options] upload-sample FILENAME [NAME]
pactl [options] play-sample NAME [SINK]
pactl [options] remove-sample NAME
pactl [options] move-sink-input ID SINK
pactl [options] move-source-input ID SOURCE
pactl [options] load-module NAME [ARGUMENTS ...]
pactl [options] unload-module ID
pactl [options] suspend-sink [SINK] 1|0
pactl [options] suspend-source [SOURCE] 1|0
pactl --help
pactl --version
DESCRIPTION
pactl can be used to issue control commands to the PulseAudio sound server.
pactl only exposes a subset of the available operations. For the full set use the pacmd(1).
OPTIONS
-h | --help
Show help.
--version
Show version information.
-s | --server=SERVER
Choose the server to connect to.
-n | --client-name=NAME
Specify the client name pactl shall pass to the server when connecting.
stat Dump a few statistics about the PulseAudio daemon.
list Dump all currently loaded modules, available sinks, sources, streams and clients.
exit Asks the PulseAudio server to terminate.
upload-sample FILENAME [NAME]
Upload a sound from the specified audio file into the sample cache. The file types supported are those understood by libsndfile. The
sample in the cache is named after the audio file, unless the name is explicitly specified.
play-sample NAME [SINK]
Play the specified sample from the sample cache. It is played on the default sink, unless the symbolic name or the numerical index
of the sink to play it on is specified.
remove-sample NAME
Remove the specified sample from the sample cache.
move-sink-input ID SINK
Move the specified playback stream (identified by its numerical index) to the specified sink (identified by its symbolic name or
numerical index).
move-source-output ID SOURCE
Move the specified recording stream (identified by its numerical index) to the specified source (identified by its symbolic name or
numerical index).
load-module NAME [ARGUMENTS ...]
Load the specified module with the specified arguments into the running sound server. Prints the numeric index of the module just
loaded to STDOUT. You can use it to unload the module later.
unload-module ID
Unload the module instance identified by the specified numeric index.
unload-module ID
Unload the module instance identified by the specified numeric index.
suspend-sink SINK 1|0
Suspend or resume the specified sink (which my be specified either by its symbolic name, or by its numeric index), depending whether
1 (suspend) or 0 (resume) is passed as last argument. Suspending a sink will pause all playback. Depending on the module implement-
ing the sink this might have the effect that the underlying device is closed, making it available for other applications to use. The
exact behaviour depends on the module.
suspend-source SOURCE 1|0
Suspend or resume the specified source (which my be specified either by its symbolic name, or by its numeric index), depending
whether 1 (suspend) or 0 (resume) is passed as last argument. Suspending a source will pause all capturing. Depending on the module
implementing the source this might have the effect that the underlying device is closed, making it available for other applications
to use. The exact behaviour depends on the module.
AUTHORS
The PulseAudio Developers <mzchyfrnhqvb (at) 0pointer (dot) net>; PulseAudio is available from http://pulseaudio.org/
SEE ALSO
pulseaudio(1), pacmd(1)
Manuals User pactl(1)