[SOLVED] C: playing a wav file with lib asound?
location: linuxquestions.com - date: June 30, 2013
On a simple, minimalist, code as follows returns some noise but not the wav.
Compiled as follows:
[SOLVED] Changing sudoers file with Visudo
location: linuxquestions.com - date: April 15, 2012
Can someone please explain to me in simple terms how I can add my user to my sudoers file (which only contains root) ?
[SOLVED] Create a file with suid from Perl script
location: linuxquestions.com - date: May 11, 2012
Hello, I have a perl script that runs in a Linux system, it basically reads a list of files and attributes and copies them to the right directory and set the attributes accordingly.
The script works fine with files with "regular" attributes like 0755, I'm doing something like this:
[SOLVED] Open Documents/File with Specific Application in Command Line
location: linuxquestions.com - date: May 6, 2014
I am trying to open file/document using a specific application(e.g.):-
File - abs.odt
App - LibreOffice 4.2 Writer (Or any other app)
When I use - gnome-open abs.odt it uses the default Ebook viewer instead.
Thank you for any help.
[SOLVED] log bash script output to file with timestamp
location: linuxquestions.com - date: March 27, 2012
I'm trying to get this little script here to output to a logfile with a timestamp. I've got everything mostly working but the timestamp. Is there a better way to do this? it's my first attempt at writing a script.
[SOLVED] Playing with SlackWare 13.37
location: linuxquestions.com - date: January 8, 2012
Hi SlackWare Community.
I just did a fresh install of last release of SlackWare and everything is going well.
However I have some questions hope to get help here in the forums
1) I am using Xfce4 which comes with firefox 4, latest version of firefox is 9.0.1, how can I upgrade?
2)how can I install the multimedia codecs so I can watch movies from my DVD collection in my laptop and play my MP3 play list
3) how can I browse files on my network so I can play media files stored in my desktop. I am so used to Nautilus and Dolphin when it comes to file manager that tunar seems so foreing.
I will appreciate it all advices. Thank you!
SOLVED 5.1 sound with speakertest, but 2.0 when playing media
location: ubuntuforums.com - date: May 1, 2009
Hi all. First of all, sorry for my crappy english.
I'm tying to make media applications sound in 5.1 channels, instead of 2.0 with no luck.
Tryed many suggestions i've found over the net, but none of those worked for me.
I think there's something i didn't configure somewhere and i don't know what it is.
The facts are:
When i run speaker-test -Dplug:surround51 -c6 -t wav -f40 in the console, all six channels sound perfectly.
When i play a media file (audio or video or dvd movies) on any player the sound turns into 2.0. I use Totem, Rythmbox, Xine and VLC. They all have the same behavior.
my .asoundrc file looks like this:
[SOLVED] sqlplus query results with spool file go to display and file
location: linuxquestions.com - date: June 3, 2011
When I run the following script, it writes the results of the query to the file specified AND to the display (I don't want them written to the display). I have tried every set option that seems relevant, but nothing seems to work.
I looked for a sqlplus forum but could not find one. Here is the script; thanks in advance.
sqlplus userid/password << EOF
set echo off
set feedback off
set heading off
set linesize 900
set newpage 0
set pagesize 0
set show off
set serverout off
set space 0
set termout off
set trimspool on
set verify off
select MESSAGE_CREATE_DATE||','||SUBSCRIBER_KEY||','|| HOSTNAME
from (select MESSAGE_CREATE_DATE ,A.SUBSCRIBER_KEY , HOSTNAME from DCL_EVENTS a , CALLTREE_V2 B where HOSTNAME like 'app%' and INSTR(GET_PAA_NUMBER_FROM_SUBSCR_KEY(a.SUBSCRIBER_KEY), B.SUBSCRIBER_KEY) > 0 AND TRUNC(
[SOLVED] Delete last 6 lines of file with sed
location: linuxquestions.com - date: June 5, 2011
looking to delete the last 6 lines of a file with sed.
figured out how to delete the last line..but i want the last six.
sed '$d' foo > bar
[SOLVED] Problem echoing text to shell file with quotes in the middle of the echo command
location: linuxquestions.com - date: February 16, 2014
I have a question that I think might be simple to answer, but I can't crack it after an hour or so of trying.
I am trying to create an installer.sh script that will create other shell scripts in the /usr/local/bin folder
The problem I have is that I want to use this line to echo the output to a file called test.sh
echo "ssh tunnel.somedomain.com.au "echo 2>&1" && echo host OK || sh /usr/local/bin/killtunnel.sh">>/usr/local/bin/test.sh
The line I want to appear in test.sh is
ssh tunnel.somedomain.com.au "echo 2>&1" && echo host OK || sh /usr/local/bin/killtunnel.sh
The problem I have is that there are quotes "" inside quotes which is not working.
Can anyone point me to the correct syntax? Or suggest a better way?
Page: 1 2 3 4 5 6 7 8 9 10