Sponsored Content
Full Discussion: Problem with a script
Top Forums UNIX for Beginners Questions & Answers Problem with a script Post 303044844 by stfrosty on Thursday 5th of March 2020 03:40:43 AM
Old 03-05-2020
Problem with a script

Good morning!
I have a little doubt, I have a script that in parameters asks for user and password with zenity, and I am trying that with those parameters a su will be made and change user without asking for a password since it was previously entered as a parameter
I attached the work done, I hope you can help me.
Thank you in advance

Problem with a script-scriptpng

Problem with a script-1png

Problem with a script-2png
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Problem starting a script from a 'main'-script

Please Help! :o I have a main script (ksh) where another script is called (convert_picture). Normally this works ok, but since some changes has been made on the unix-server (I dont know what :( ) suddenly it doesnt work anymore: i get an error message: ksh: convert_picture not found. I am... (3 Replies)
Discussion started by: Rakker
3 Replies

2. Shell Programming and Scripting

Help. Script problem

hey guys. i have a bunch of programs in a script that needs to run as root and the rest as another user, we'll call him gabriel. now, in this script, i want to run the first few lines as root. now, how do i, after running as root, tell the script to run the remaining lines as the user gabriel?... (3 Replies)
Discussion started by: Terrible
3 Replies

3. Shell Programming and Scripting

ssh script problem problem

Hi Please help me with the following problem with my script. The following block of code is not repeating in the while loop and exiting after searching for first message. input_file ========== host001-01 host001-02 2008-07-23 13:02:04,651 ConnectionFactory - Setting session state... (2 Replies)
Discussion started by: pcjandyala
2 Replies

4. Shell Programming and Scripting

call shell script from perl cgi script problem

hi,, i have perl scipt with line : system('./try.sh $t $d $m'); in shell scipt try.sh i have the line: echo $1 its not printing value of $t that i hav passed..y is it so..i am running it from apache web server (2 Replies)
Discussion started by: raksha.s
2 Replies

5. UNIX for Dummies Questions & Answers

Problem with script

Hello All. I have a script that is suppossed to start up a daemon but when executed, simply hangs. Could you please take a look and let me know where the problem might be? TIA ################################################################### # # SCRIPT: dstart3000.sh # Bring up the Domain... (6 Replies)
Discussion started by: grin1dan
6 Replies

6. Shell Programming and Scripting

Problem running a program/script in the background from a script

Hi all, I have a script that calls another program/script, xxx, to run in the background. Supposedly this program at most should finish within five (5) minutes so after five (5) minutes, I run some other steps to run the script into completion. My problem is sometimes the program takes... (5 Replies)
Discussion started by: newbie_01
5 Replies

7. Shell Programming and Scripting

Problem while calling a script within a script

Hi , I have moduled my scripts in three scripts . From First script i am calling second and from second i am calling third for some check . Problem is with the third script call. ---In second script EXP ='test.\abc.\Server.*abc.xml.*' pid=$($HOME/bin/checkpid $EXP) --Third... (2 Replies)
Discussion started by: amrishn
2 Replies

8. Shell Programming and Scripting

Script problem

Hi all, I have a script that I was using in Mandriva and my script worked perfectly well but then I changed to using Puppy Linux and it isn't running the way I thought it would. In Puppy Linux operating system I've encountered a few problems, first problem is the elif for option B isn't... (4 Replies)
Discussion started by: Chrissie
4 Replies

9. Shell Programming and Scripting

Shell script newbie, what is problem with my script?

Hello, Ubuntu server 11.10 can anybody help what is problem with my shell script? #!/bin/bash #script to find out currently logged on user is root or not. if ] then echo "You are super" else echo "You are awesome!" fi When I run script, I get following output ./uid: line 3: I... (4 Replies)
Discussion started by: kaustubh
4 Replies

10. Shell Programming and Scripting

Problem in calling a script inside a script

Hi team, I have a script in different folder. Now i want to call that script and execute that script from that path alone. My code is #!/bin/bash wname=yahoo PATH='/opt/IBM' wac=`/usr/bin/ls $PATH | /usr/bin/grep "$wname"` STOP=`/usr/bin/find $PATH/$wac -type f -name "stop.sh"`... (8 Replies)
Discussion started by: natraj005
8 Replies
vmixctl(8)						OSS System Administration Commands						vmixctl(8)

NAME
vmixctl - Open Sound System utility to control the vmix subsystem. SYNOPSIS
o vmixctl attach [attach_options...] audiodev [inputdev] o vmixctl detach [attach_options...] audiodev o vmixctl rate audiodev samplerate o vmixctl remap audiodev channels DESCRIPTION
The vmixctl program can be used to attach or detach the virtual mixer subsystem (vmix) to/from audio devices. In addition it can be used to control vmix related parameters such as the sampling rate to be used with the device. By default most OSS drivers will attach virtual mixer to the primary audio device of the sound card (or motherboard audio chip) when the device is attached. However possible secondary audio devices (engines) will not have vmix attached by default. In additional professional audio devices will be attached without vmix because mixing may cause some unwanted distortion to the signal. ATTACHING VMIX TO AN AUDIO DEVICE
There are two forms of vmixctl attach command: o vmixctl attach audiodev This alternative is to be used with devices that support only output or have a single audio device file that supports full duplex. o vmixctl attach audiodev inputdev The second form is to be used with devices that have separate output and input device files. The "audiodev" parameter defines the output device and the "inputdev" parameter is the device file to be used for input direction. Note that both device files must belong to the same "physical" sound card. In some cases it might be possible to use one sound card for playback and another for recording. However this configuration is not supported and the result may not be functional. To find out the right device file names (audiodev and inputdev) you can use the "ossinfo -a" command. ATTACH OPTIONS o -r Disable recording functionality. By default vmix will support recording if the master device(s) support it. o -p Do not preallocate client engines. By default vmix will preallocate first 4 (out of 8) client engines when attaching to the device. The remaining engines will be allocated on-demand if there are more concurrent applications that use the device. o -M Make vmix use more fragments. o -V Make client devices visible (have private device nodes under /dev). o -c <n> Preallocate <n> client engines instead of 4. However -p option makes this option ineffective. EXAMPLES o vmixctl attach /dev/oss/oss_envy240/pcm0 o vmixctl attach /dev/oss/oss_envy240/pcm0 /dev/oss/oss_envy240/pcmin0 SETTING THE SAMPLING RATE USED BY VMIX
The virtual mixer subsystem will set the physical audio devce(s) to use fixed sampling rate that is 48000 Hz by default. It is possible to use "vmixctl rate audiodev" to switch vmix to use some different rate with this device (pair). You should use "ossinfo -a -v2" to verify that the sampling rate is actually supported by the device. Otherwise the actual device may enforce vmix to use the nearest supported rate (or some default rate). The "audiodev" parameter is the device file name (see ossinfo -a) that is used for playback. The input device name doesn't need to be spec- ified. Note that some professional audio devices may be locked to external sampling rate or some fixed rate (defined in ossmix/ossxmis). In such case the rate is not changeable by vmixctl. EXAMPLE o vmixctl rate /dev/oss/oss_envy240/pcm0 44100 CHANGING THE VMIX CHANNEL MAP
The vmix subsystem can remap channels, so that all output sent to a channel via vmix will end up being played on a different channel. The syntax uses a list of channels, where typically 0=default, 1=left, 2=right, 3=center, 4=lfe, 5=left surround, 6=right surround, 7=left rear and 8=right rear. Note that vmix-channels should be set first to Multich if vmix is to recognize the extra channels. EXAMPLES o vmixctl remap /dev/dsp 2 1 #switch left and right o vmixctl remap /dev/dsp 0 0 0 0 6 5 #switch left and right surround DETACHING VMIX FROM AN AUDIO DEVICE
It is possible to detach vmix from an audio device if it causes problems with applications by using "vmix detach audiodev". It is not possible to detach and (re)attach vmix to the same device more than few times. Use the vmix-enable setting in the control panel (ossxmix or ossmix) to disable/re-enable vmix if you need to do it repeatedly. Use vmix detach only if you need to attach virtual mixer using different parameters. EXAMPLE o vmix detach /dev/oss/oss_envy240/pcm0 POSSIBLE BUGS
o The control panel elements related with vmix are not removed from the mixer API when vmix is detached. This may be somehow confus- ing. SEE ALSO
soundoff(1), soundon(1), ossmix(1), ossxmix(1) FILES
/usr/sbin/vmixct AUTHOR
4Front Technologies 16 December 2012 vmixctl(8)
All times are GMT -4. The time now is 04:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy