Programming :: C / C++ Scripts For Make Hunting Call In Open IMS

Nov 15, 2010

I am a newbie in linux n programming, I need to use ubuntu for my research at school about building an IMS server use openims.

The problem is I need an additional script in C/C++ for my openims server to make an extension call. I hope one number can represent 3 client as receiver/operator. So, when I call the number, the server can forward the call to those three receiver by hunt.
1st call will be forward to the 1st receiver.
2nd call will be forward to the 2nd receiver.
3rd call will be forward to the 3rd receiver.
then, 4th call will be forward back to the 1st receiver, etc.

View 7 Replies


Programming :: Make System Call From An Automatically Started Daemon?

Apr 2, 2011

i've written small tool in C which makes measurements on my router (OpenWrt White Russian).

It is working as a deamon. If the tool is started manually, everything works fine. If it is started per script on startup, the following system call doesn't work :

Code: sprintf(command,"/bin/cat /root/%s%s | /usr/bin/ssh -p2222 user(at)host -i /root/.ssh/id_rsa "/bin/cat >> result/%s%s"", apmac, source, apmac, dest);

rc = system (command); the returned rc in this case is 256.

first i thought it is a problems with the user rights for the tool, so i have added +s to it. but that didn't help. as i said, when the daemon is started by hand, the system call works fine.

View 1 Replies View Related

Programming :: Bash : How To Make Firefox Open But Minimize

May 3, 2011

I am relatively new to scripting, but I was wanting to open a firefox window from a bash script, but have it open, then minimize. In the script, I have a single instance of: firefox & but is there a way to minimize it, versus have it displayed on the screen? I was wanting the command terminal to remain visible and it can't since the firefox window is open in front of it. I looked all over the place, including the man pages, but to no avail. I can make the height and width changes, but no minimize. Either that, or to be able to bring the terminal window back to the front automatically.

View 5 Replies View Related

Programming :: Distribute Software / Make It Free - Open Source?

Jan 15, 2010

I was wondering what would be a good, no-cost way to distribute software that I wrote? And what would be a good way to make it free/open source?

View 3 Replies View Related

Programming :: Make A Bash Script That Will Open Up Port 23 For A Netcat Connection?

Apr 14, 2009

I'm starting to like making bash scripts. It's kewl making creative ones. Right now I'm trying to make a bash script that will open up port 23 for a netcat connection. Once there's a connection, I'd like for the script to open up xmms and play a sound effect, as well as echo a txt file to the desktop saying that a connection was made at this specific time. When I execute the script, it stops exection at the first line. So far I have this:

sudo nc -lvnp 23
while [ 1 ]


View 8 Replies View Related

Ubuntu :: Make A Video Call Using Empathy On 10.04?

May 9, 2010

I am using empathy on ubuntu 10.04.but the video call option is inactive

View 4 Replies View Related

Red Hat / Fedora :: Cannot Make Skype Call Because Of Audio Playback

Feb 9, 2010

I have new machine with good configuration .
Mother Board ---> Asus P5KPL AM/PS
CPU --> Intel Dual core 2.50 GHZ
RAM ---> 1 G.B
Hard Disc ---> 160 GB

I installed Fedora 11. It 's working fine I have problem only for Skype. When I try to call some one, I got the error "Problem with audio playback". I have "skype-" on my machine.

View 2 Replies View Related

Software :: Make Video Call Using Skype (beta)

Nov 6, 2010

When I open the "Options" of Skype, the camera can be recognized and there is video. But I don't know how to start a Skype video call. My Skype account is "dynamiccliu" if you want to add me and have a try the video call.

View 2 Replies View Related

Ubuntu Multimedia :: Caanot Record To Make Call In Skype

Jan 26, 2010

Sound Recorder is working fine. But when try to make normal call or test call I cannot record sound my internal mic in SKYPE. As I speak something immediately the sound level of mic drops to zero. Alsa driver are installed. HDA intel conexant mic.

View 1 Replies View Related

Slackware :: Add Own Personal Database Of Quotes For The Fortune App To Call When Open A Terminal

Feb 5, 2010

I'm trying to add my own personal database of quotes for the fortune app to call when i open a terminal. I was able to successfully create the data base from a text file along the lines of this thread [URL] And it works when i type :$ fortune mydatabase The problem is, when i open a terminal i dont believe fortune knows to look for the new database, and im yet to see one of my quotes appear. If anyone can point me in the right direction as to where the command is issued to run fortune when i open the terminal

View 5 Replies View Related

Ubuntu Servers :: Hunting For Something Used To Use?

Apr 17, 2010

I'm recently reborn again in Linux and a lot of these repository descriptions can sometimes seem vague to me or just a bit overwhelming. I just installed 9.10 Server since I just wiped a brand new Windows 7 laptop to install Karmic Desktop on it. So I finally have a need for this.

The question: Back in college I could use windows terminal to log into my schools *nix servers and could remotely login (w/ password) and it took me to bash. I believe I came across a repository of a GUI version of this feature while digging, but I want the command line version 1st. (IDK if I want it more for nostalgia or for power). Eventually I plan to have both types running though. But, what service am I looking for?

View 4 Replies View Related

Debian Multimedia :: How To Make GNOME Extension Call Systemctl Hibernate

Oct 10, 2015

I'd like to know how I can modify an existing GNOME extension to call Code: Select allsystemctl hibernate

View 1 Replies View Related

Programming :: Add Switch To Every Gcc/g++ Call?

Feb 23, 2009

I was wondering if there was a way to add a switch to a gcc/g++ call everytime. I have a few libraries that I need to compile for different processors. Each has a makefile which calls gcc to compile. Here is the best option I could come up with so far:Include a Makefile and define CC as gcc -mcpu=xxx.

View 4 Replies View Related

Ubuntu Multimedia :: Make Voice Call - Skype Beta (latest) And Pidgin (gmail Account)

Feb 1, 2010

I have a strange problem with my skype beta (latest) and Pidgin (gmail account) the problem is when i make voice call, it works fine for 1 or 2 mins then the voice drops and it connects after 20,30 secs.

View 1 Replies View Related

Ubuntu :: Hunting Command Line Cheat Sheet

May 19, 2010

I've done a pretty inclusive search and haven't found a command line cheat sheet for Ubuntu more recent than 2007. Is that one recent enough, have the basic commands stayed the same? I know I tried tweaking grub 2 and was in a whole new world from the grub i tweaked a few years ago (I know were not talking the same thing from boot loader to os, but it seems there would have been slight changes at least since 2007).

View 4 Replies View Related

Ubuntu Networking :: Hunting Intruders In Wireless Network?

Oct 1, 2010

Many of us maybe are afraid to by the fact that others are using our wireless connection (without permission of course). What is the command I have to run on the terminal in order to list possible logs of intruders?

View 2 Replies View Related

Programming :: Call C Executable Inside C

Jan 8, 2010

i have only basic knowledge of C so guys plz help C language support call the C executable inside the C ?example contect mainA.c have a many function define in the struct,when i compile mainA and make a executable the name is ( A ),can i use executable C inside the C <my C program call the executable ( A ) > .

View 9 Replies View Related

Programming :: Execvp System Call?

Apr 3, 2011

in below program why was new_args[0], rather than the reference the_cmd, passed to the execvp system call?

A _very_ limited shell program


View 2 Replies View Related

Programming :: Call The Executable File From The GUI?

Jun 1, 2010

I have created a executable file using c and I have also created a GUI using GTK+. Now how can I call the executable file from the GUI with arguments passing to the executable file.

View 4 Replies View Related

Programming :: How To Call Fortran Subroutine From IDL

Sep 29, 2010

There are examples everywhere about calling f77 subroutine from IDL, but I have not found any material about IDL calling fortran written in f90 way(free style). I tried the following example, but write the subroutines in free style. When I run the makefile, it gives an error 'undefined reference to main_'.


SUBROUTINE SUM_ARRAY(argc, argv) !Called by IDL
INTEGER*4 argc, argv(*) !Argc and Argv are integers
j = LOC(argc) !Obtains the number of arguments (argc)


View 1 Replies View Related

Software :: Script That Call A Java Program That Call A System Command?

Nov 29, 2010

In practice I have a script that call a java program that call a linux system command. The script if I run it, from a shell functions well,so it is not a java problem. The problem come out when i put this script in a crontab schedulation. The result in this case is that java do not execute the system command. I think it depends on crontab

View 4 Replies View Related

Programming :: SSL_write Returns SSL_ERROR_SYSCALL, EOF On Second Call

Oct 8, 2010

I am facing issue in my OPENSSL code. I have written openssl client. It sends request to the host and receives response for that request.

My problem is, it connects, sends request successfully to host at first time only in sencond attempt it fails on SSL_write(). where SSL_get_error() returns SSL_ERROR_SYSCALL error.

In that ERR_get_error() returns 0. man page shows "If ret == 0, an EOF was observed that violates the protocol".

Code Snippet.


View 3 Replies View Related

Programming :: Clarification In The Select System Call?

Dec 8, 2010

I have a process that forks, where the childs puts some data of random size and exits while the parent should get the data and does some manipulation.. here I have used a pipe for child to write the data and parent to read the data.. Child simply dumps the data, and the data is of any size even child and parent doesnt know.
I have used select in the parent to see whether there is any data coming on the reading end of the pipe.. if there is a data.. I copy into a buffer.. Im reading the data continusly when the child exits after closing the writing end of pipe. Parent gets blocked on the read part But my question is how parent know the other of pipe is closed when using the select call. In otherwords.. while using select in readfds, how would i know the other end has closed the pipe..

View 2 Replies View Related

Programming :: C - System Call & Error Checking?

Sep 18, 2010

I am trying to figure out how i would go about finding out where system call is made and error checking is not done. I have code below, if somebody can point me in the right direction where system call is made but error checking is not done.Quote:

#include "shell.h"
#include <stdio.h>
#include <string.h>


View 5 Replies View Related

Programming :: Call Shell Script In Perl Pm

Sep 4, 2010

i used ldap for i have a perl script that users use it for login(,then this script calls a shell script( for create iptables chain.

when i call that into ,it just prints: usr/sbin/iptables but ip chains didn't change.what is problem? whenever run in bash it works correctly

View 10 Replies View Related

Programming :: How To Use Bashrc To Redirect Executable Call?

May 24, 2011

I need to redirect a /usr/sbin/sendmail command to $HOME/bin/msmtp .The sendmail command would be coming from a PHP5 application. I'm assuming the best way is to use .bashrc, but .htaccess is also available.The remote server is a shared web host which is running Debian 4.0.I do not have root access.I have SSH access.

View 2 Replies View Related

Programming :: How To Call Array Dynamically Into Script?

Jul 20, 2011

I have a script which takes an array as an input to the file.ex: test.ksh -l <array_value>

Every time I dont get the same array name.EX: test.ksh -l x ; where x="a b"test.ksh -l y ; where y="c d"

I store the value I get in l in varaible myLvalue.Now indise my Script I want to run a for loop for thevalue I get in -l.If I write the for loop as below. I'm getting value x.However I'm expecting the loop to run for a and b.

View 5 Replies View Related

Programming :: How To View New Added System Call

Aug 30, 2010

I successfully added a new system call in CentOS Kernel but I don't know where to view it! My kernel version is -

View 2 Replies View Related

Programming :: Process Of Creating System Call?

Mar 24, 2011

how to create a new system call Linux? what is the process of creating ?my project is to create a system call for displaying owner of a file..where exactly we have to write the system call code? and where are the places need to change ?

View 5 Replies View Related

Programming :: Write A Bash Script To Call From A Terminal?

May 24, 2010

I am trying to write a bash script to call from a terminal that will change the terminal title. I am using ubuntu 10.04. The script is meant to be used in the gnome-terminal.

Here is what I have:

Code: #! bin/bash
echo "New title: c"
read title
echo "33]0;$titl07c" -e


it doesn't work

I think the problem has to do with modifying PS1 inside the bash so i tried this:

Code: echo `export PS1="[e]1;u@h:wa]${debian_chroot:+($debian_chroot)}u@h:w$ "` and it still didn't work.

View 1 Replies View Related

Copyrights 2005-15, All rights reserved