Programming :: Internal Working Of System() And Evecvp()?
Feb 17, 2010system() and execvp() both work by creating a new process. Question: Do they create new processes by internally calling fork() or there is some other way ?
View 6 Repliessystem() and execvp() both work by creating a new process. Question: Do they create new processes by internally calling fork() or there is some other way ?
View 6 RepliesI am writing a perl script which uses the matlab compiler to compile a .m file.
I am using the system("mcc �m file.m"). I have matlab installed and both script and exe are in the same drive.But i get the following error .
'mcc' is not a recognised as an internal or external command ,operable in program or batch file.
My system decided to crash on me, hard. It was humming along happily for about 2 months and now doesn't boot. If I boot from hard-disk, I get grub. Launching the first kernel choice hangs. I thought maybe the install was corrupt, so I booted from usb install disk. The usb hdd didn't boot; something about an error trying to access /dev/sda . Unplugging the internal disk and plugging in the usb install disk does result in the system booting. Plugging in the internal disk in a running system usb-booted system does not result in the system detecting the disk.
How do I know if the disk is physically broken? This seems unlikely since it does manage to launch grub consistently. Or is this still possible? How can I try to mount whatever is left? The usb install disk doesn't even list the /dev/sd*. Any pointers on how to reformat the drive if it's not being mounted?
basically in the child process iam just calling the ptrace(PTRACE_TRACEME, 0, NULL, NULL) system call but if add this stsyem call rest of the code not working properly. i found the reason basically what happening is when we have ptrace() system call its printing the same variable 3 times i.e its not executing it 3 times but just it is printing 3 times .iam just wondering how it could be possible.
View 1 Replies View RelatedI have the following code:
Code:
#include <stdio.h>
#include <stdlib.h>
int main() {
system("ps -ef | grep myprocessname");
return 0; }
When I run this program it outputs the following list of running processes:
Code:
root 10279 10275 0 13:02 ? 00:00:00 myprocessname myvar1=value1 myvar2=value2
root 10341 10337 1 13:02 ? 00:00:00 myprocessname myvar1=value1 myvar2=value2
What I want to really do is instead of writing the output to screen I want to read the output and parse the various values value1, value2 etc. What is the best way to do this?
The internal microphone of my laptop Thinkpad T400 does not work after the new installation of fedora 15. I was trying to use it in SKYPE and could not get any sound recorded at all. However, when I tried arecord, sound is recorded, but is extremely low and not clear with lots of noise.The sound control seems to be different from before. Now available settings are
Code:
None
Analog Stereo Input
Digital Stereo Duplex (IEC958)
[code]....
And the 'Input' page seems not bad because I can drag the Input volume. However, the 'Input level' is empty, or only 1 bar even I drag the 'Input volume' to maximum.Analog Stereo Output and Analog Stereo Duplex (the one I am using) are the two give me output sound. But none seem to work with my internal mic. I haven't tried an external mic, though, because I do not have one.There seems to be no more "advanced volume control" that I used in Fedora 12. Also, there seems to be no more ALSA devices or PulseAlsa devices?
'#arecord -l' list my device as
Code:
Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog].
how to solve this. For example, is there a way to get those ALSA settings back (well, I do not really understand what ALSA is and how it works but it did work when I had Fedora 12)? I do have a lot of packages named 'alsa*' installed.
I have a Gateway NV52 with an internal microphone and internal webcam. On Windows, both work fine, but on Ubuntu I can only get the webcam to work. I never used one on Ubuntu (using Karmic Koala 64 bit) before, so I may be overlooking something.
Code:
01:05.1 Audio device: ATI Technologies Inc RS780 Azalia controller
Here are some screenshots:
My Asus X52J Internal mic not working.. here is my asla informationCode:[URL]
View 9 Replies View RelatedWe have a target board with intel atom processor(COM). OS : Ubuntu 9.04 But I am not able to hear the Internal speaker sound. ->pcspkr driver is present. ->Different tests were conducted inclding echo -e "a" , console-beep package ,writing to the port etc. ->Sound is not heard during system startup also.
View 4 Replies View Relatedtrying to use the internal mic for skype, with no such luck. its an HP Pavilion dv-XXXX (<<i want to say 5000 or 6000, but it isnt in front of me ATM), restarting didnt help, and everything is updated (Fedora 14).
View 2 Replies View RelatedI have a SuSE server (sorry but no idea what version of SuSe it's running.. I'd take a guess at 10.0) on a network with several other SuSE servers. They are all able to be SSHed externally as well as internally and all have their local firewalls disabled. I just had to reboot one of the servers and it is behaving quite strangely. I am able to SSH in and out of it externally, but can't SSH in and out of it internally.
When trying to SSH out internally I get the message:
"ssh: connect to host *.*.*.* port 22: No route to host"
When trying to SSH in internally I get the message:
"ssh: connect to host *.*.*.* port 22: Connection timed out"
Using ssh -v doesn't give any more useful information.
I have double checked that the IP is correct and that the internal firewall is disabled etc. The external firewall hasn't got anything that would prevent it (and shouldn't be an issue anyway as it's an internal only problem... SSH externally works fine). Also, it might help to know that I have the same problem with ping. I can ping this server from an external system, but not from an internal one.
I have been going crazy with this maybe someone can help me out. I realized that in 10.04 my internal mic on my Asus G51VX does not work.
I have already upgraded my ALSA Drivers using the latest 1.0.23, and in alsamixer it shows the iMic and Capture devices correctly, however in sound recorder and in Skype I get nothing but a low hissing sound. I believe this is a pulse audio problem and not ALSA since I didn't have a problem in Kubuntu 9.04 using ALSA which I had previously to this.
In sound config pulseaudio shows that there is only one input and one output device which I figure should read 2 input devices since there is also a mic jack on the laptop. Either way it is really annoying not to have use of the Mic.
Device is INTEL HD AUDIO ALC663
Simple mixer control 'i-Mic',0
Capabilities: pvolume pswitch penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono:
Front Left: Playback 31 [100%] [12.00dB] [off]
Front Right: Playback 31 [100%] [12.00dB] [off]
When I turn the i-Mic on I can hear the echo of myself coming out the internal speakers but it still won't record anything even with the Capture control on and at full volume.
I've got a Gateway CX2724. The sound works perfectly out of the speakers and headphones, but I can't get the internal mic to work for the life of me.
I asked around on other threads and tried a few modifications to /etc/modprobe.d/alsa-base.conf and none of these get the mic working when appended:
From the ALSA-Configuration instructions
Code:
options snd-hda-intel model=ref
Ideas taken from this thread
Code:
options snd-hda-intel probe_mask=1
Code:
options snd-hda-intel model=test enable-msi=1 probe-mask=1
This also doesn't work (modified from this thread.)
Code:
options snd-hda-intel model=ref probe_mask=1 position_fix=1
This also doesn't work (from "Extra Hints to get sound working.")
Code:
options snd-hda-intel model=laptop position_fix=1 enable=yes
When I use alsamixer to turn "mux" all the way up and have my headphones plugged into the microphone jack (don't have an external mic... ) in the front of the computer, I am able to record things but the volume is greatly muted. Perhaps the external jack is set to default for the microphone instead of using the internal mic?
I also have the output for alsa-info.sh if you want it - this was mentioned in the alsa configuration file (/usr/share/doc/alsa-base/driver/ALSA-Configuration.txt). Info about alsa-info.sh here.
i have just installed ubuntu on my dell inspiron 1525 and my internal/ built in webcam is not working. I've downloaded applications that use it like cheese and skype and it does not pick it up.
View 1 Replies View RelatedI just did a fresh install of OpenSuSE 11.2 for my fiancee on her new HP Mini 110-1030NR, and everything works great, except for the 5 in 1 card reader. Here is the information I believe you may find relevant:
Kernel
2.6.31.5-0.1-desktop
Output of lspci:
Code:
00:00.0 Host bridge: ATI Technologies Inc RS690 Host Bridge
00:01.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (Internal gfx)
00:06.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 2)
00:07.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI Express Port 3)
00:12.0 SATA controller: ATI Technologies Inc SB600 Non-Raid-5 SATA
00:13.0 USB Controller: ATI Technologies Inc SB600 USB (OHCI0)
00:13.1 USB Controller: ATI Technologies Inc SB600 USB (OHCI1)
00:13.4 USB Controller: ATI Technologies Inc SB600 USB (OHCI4)
00:13.5 USB Controller: ATI Technologies Inc SB600 USB Controller (EHCI)
00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 14)
00:14.1 IDE interface: ATI Technologies Inc SB600 IDE
00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: ATI Technologies Inc SB600 PCI to LPC Bridge
00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:05.0 VGA compatible controller: ATI Technologies Inc RS690M [Radeon X1200 Series]
02:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
how I get mystr: unix to become mystr: linux?
#!/bin/bash
mystr="unix"
echo "linux" | while read myline
do
[code].....
I have submitted the following to Bugzilla as well. I have a Fortran routine with a C signal handler. When a signal is caught, the signal handler calls gdb with a script argument to the system() call to output a backtrace. When I build the fortran file with the -g option, run the program, and send it a signal,I receive the error message "stack.c:295: internal-error . Without the -g option the error message does not appear but as expected I get limited output in my backtrace. Below is a description of the environment in which the bug is experienced, output from gdb showing the bugs occurrence, as well as source code and a Makefile to reproduce the bug. The problem occurs in gdb 6.8 but I have seen the same results with gdb 7.1
[Code]...
My fedora12 send me this error message:
Code:
An internal system error has occurred ..... Please use your distribution bugtracker to report this error ... What is the bugtracker? How i can use it?
I have an existing Ubunto 9.10 install sitting on a 500 GB SATA drive that was sitting in my second SATA port. I'm trying to swap the internal HD out to a new system that has a 500 GB SATA drive with Windows 7 on it as the primary drive, in SATA port 0. When I configure BIOS to boot from my Ubuntu drive, I just get a flashing cursor on the screen and no Grub bootloader like I was before.
Does this mean Grub isn't on my Ubuntu drive? Should I install grub on both my Ubuntu drive's MBR AND my primary Windows 7 drive's MBR, or only one of the other. The instructions I've been reading don't specify which drive to reinstall Grub on and which drive I should boot from, so I'm confused. How do I get it so that Grub acknowledges my Windows 7 install on the primary drive?
I want to implement ticketing system on cent OS 5.5 for internal use, i.e when user is having any problem in their system, they will rise a ticket with its number and we will close that number after we fixing the issue. So could anybody please provide any use full url links to implement it?
View 5 Replies View RelatedI have a new notebook (ACER Extensa 5635) and I can't make internal or external microphone working. Volume for mic is set to maximum. I have :
cat /proc/asound/card*/codec#*|grep -i codec
Codec: Conexant CX20561 (Hermosa)
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]
Subdevices: 1/1
[Code].....
Just curious if someone could help me with my issue, I've noticed that my internal mic doesn't work, and when I plug in headphones it stops the use of the speakers but I hear nothing through the headphones. I'm running openSUSE 11.3 and have had almost no major problems until this. I've searched around and asked a couple friends and have made absolutely no progress.
View 8 Replies View RelatedI have a HP Pavillion dv4 1313dx that has been running Ubuntu Lucid Lynx 10.04 wonderfully, but I am getting nothing out of the microphone.
I am a VERY beginning user (All I really know how to do in terminal is copy/paste, cd, ls, and, chown) and if I can fix this easily, I'd love it.
I already know to check the sound preferences, and nothing is picked up on the microphone, but I think it's there.
I've spent the last couple hours trying to figure out how to get my SoundBlaster XFi card working, but somehow in the process seem to have now also broken my on-board sound which when I first installed did work. I have no idea how as I hardly touched anything.Both cards are recognized in Sound preferences, sound is not muted there nor in Alsamixer. But neither produce any sound at all now.
Searching around the forums it seems that as of now my XFi should, kind of, work out of the box, but I've had no such luck.I'd really like any advice possible on getting my XFi with headphones to work in 10.04, but if this can't be done I'd atleast like to find a way to fully reset my sound setting so my on-board will work without having to wipe this partition and reinstall - there Must be an easier solution than that.
I recently installed Ubuntu 10.10 and everything went smooth. I was originally using Ubuntu 10.04 version installed via Wubu and decided it was time to make a true install of Ubuntu and decided to use 10.10.
I installed Skype and tried to have a phone convo, but the Microphone wasn't working. I tried to use yfrog.com to record a video from my webcam and the video worked fine, but no audio. I also tried the pre-installed sound recorder to record my voice but that also failed.
My Toshiba Satellite L305D is running Ubuntu 10.10. The internal microphone doesn't work - if I try to record something, I just hear some clicks. According to the terminal, my audio device is:
ATI Technologies Inc SBx00 Azalia (Intel HDA)
When I click open alsamixer, the boxes for Front Mic, Mic Boost and Beep are empty. When I go to Preferences => Sound => Hardware I get a choice of Analogue Stereo input, output and duplex - as well as off. I go for duplex. When I go to sound => input, the microphone mute box in unchecked and the single volume bar is at a maximum. There are no choices - the one choice, Internal Audio Analog Stereo, is checked. As it's only once choice, it can't be unchecked.
I have installed Ubuntu 10.10. everything is ok except with internal speaker in my HP Compaq dc7900 Convertible Minitower PC. audio is coming through headset but not through internal speaker. what might have gone wrong with my system. but it is working with windows 7 ultimate. i'm using dual boot. i have installed the same ubuntu 10.10 64 bit in my laptop DELL Inspiron N4010, with this everything is fine. but i have problem with hp desktop internal speaker. what should i do?
I have observed one thing that in SYSTEM >SOUND > OUTPUT Connector has only two options 1. Analog Headphones 2. Analog output.but in my DELL Inspiron N4010 one more option is there "Analog Speakers".
We have a STM32F103ZET6 microcontroller.It has an ARM cortex-M3 core.We use keil as compiler.We have both an external and internal SRAM.Now I want to declare variables in either of the RAM as I wish.For example some time critical section variables in internal and others in external.How to do this.?
View 1 Replies View RelatedHow can I install linux using an external hard drive? ANy help would be greatly appreciated. I dont have any CD's or anything and this is my only option.
SO how can I install linux FROM my external HDD ONTO my internal HDD?
Code:
Error Type: <class 'yum.Errors.RepoError'>
Error Value: Error getting repository data for installed, repository not found
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3125, in <module> main()
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 3122, in main
backend.dispatcher(sys.argv[1:])
File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 710, in dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.6/site-packages/packagekit/backend.py, line 657, in dispatch_command
self.update_packages(only_trusted, package_ids)
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1948, in update_packages
signed = self._is_package_repo_signed(pkg)
File : /usr/share/PackageKit/helpers/yum/yumBackend.py, line 1437, in _is_package_repo_signed
repo = self.yumbase.repos.getRepo(pkg.repoid)
File : /usr/lib/python2.6/site-packages/yum/repos.py, line 121, in getRepo
'Error getting repository data for $s, repository not found' $ (repoid)
I cant update my system what can I do?