Programming :: Automating Process Of Asking Question

Mar 10, 2011

I need to ask a question on many forums/mailing lists.In such a situation I need to open browser and login to many forums at the same time.Then go and format it according to forum guidelines and then paste it.So I want to know if I can automate this process some way by some alias or command line utility and just type the question in a text file and give URLs on command line and the question gets posted to those forums where I request?

View 7 Replies


ADVERTISEMENT

Programming :: Automating Bluetooth Device Pairing

Aug 11, 2009

I am developing an application which communicates with a bluetooth device.I do not want the user to pair or unpair the device using the Bluetooth applet or command line, but I want to automate the pairing process through my application. The application will scan and find the bluetooth devices in the proximity of the computer, and automatically pair the required device without any user input.Where should I look for the relevant APIs?

View 1 Replies View Related

Programming :: Automating Data Entry Into MySQL Database?

Jul 19, 2010

I have set up a MySQL database which has only three fields for user-name, password and index number. But there is a LOT of data (thousands of columns) which would take too long to enter manually. I'm sure MySQL must have a file format whereby a single large file containing different data types can be successfully automatically imported and the various data elements distributed to their intended fields. Does anyone know which characters MySQL uses as field seperators for this formatting of data, or is there a program already written which can take raw data and organize it into a SQL compatible file?

View 8 Replies View Related

Programming :: Displaying Process Id In Shell Script But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh Code: #!/bin/bash

result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')
echo $result
if [ "$result" == "" ];

[code]...

View 4 Replies View Related

Programming :: Difference Between Init.rc Process And Normal Process?

Mar 31, 2011

Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?

View 1 Replies View Related

Programming ::get The PID Of The Process Giving Kill Signal To A Process?

Nov 26, 2008

I tried googling but didn't get any answer for this.I have a process called "abc" and it is running with PID "123".I have a putty session opened with PID "999".I am giving kill -TERM 123 from putty session.My process "abc" before dying it should catch the PID of the terminal which provided TERM signal to it.Is there any way to find this out

View 2 Replies View Related

Programming :: Showing Process Id But There Is No Such Process?

Nov 9, 2010

I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh

Code:
#!/bin/bash
result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')

[code]...

View 14 Replies View Related

General :: Killing Parent Process Without Killing Child Process (Linux C Programming)?

Mar 10, 2011

I want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

[code]....

View 1 Replies View Related

Programming :: Under Which Circumstances A Child Process Creates Another Child Process Using Fork

Dec 7, 2009

Consider the following code:

Code:

int main()
{
int i=0;
pid_t pid;
for(i=0;i<2;i++)

[code]....

I get the following output:

Parent: chid_pid=4356 i=0 parent's pid=4355
This is child 4356 i=0
This is child 4357 i=1

[code]....

I can observe instead of two children(as I expect) processes there are three. This is because child process 4356 creates its own child. Why all the messages of the type "This is child X i=Y" are concentrated one under another? How exactly fork works? Is affected by the fact that I have a dual-core processor?

View 3 Replies View Related

Programming :: Unix Programming - Single Process That Does Not Start Up Any Other Threads

Sep 28, 2010

i want a process that can operate as both a TCP echo server and a UDP echo server. The process can provide service to many clients at the same time, but involves a single process that does not start up any other threads.

View 3 Replies View Related

Fedora :: Automating Evolution - Is It Possible?

Dec 9, 2010

I use Evolution Mail Client everyday on my fedora machine. It has become indispensable somewhat. I am wondering if Evolution can be made to run in the background without the GUI, so it can check mails (IMAP/POP) and post delivery reminders through notify-send. I don't mean evolution-notify-alarm ... I know evolution-notify-alarm runs like that but I think that is limited to calender events and tasks (using data mostly stored locally)

I find that I get notified via notify-send interface only when Evolution GUI is on or minimized. Is there a way to get a real background version of this activity - the GUI can then appear when the Panel Icon is clicked

View 4 Replies View Related

General :: Automating GUI For Certain Task?

Jul 29, 2010

For a certain task, everytime I have to open 10 bash terminals and write different commands on them. Any way to automate this? I am running Fedora linux.

View 2 Replies View Related

Server :: Automating A Restore With Backuppc?

Jan 28, 2011

here is the thing. I've deployed BackupPC in a server at work, and everything is working fine. Now, what I need to do this thing. I have a remote server with a website and a postgres db running. I've been able to set up everything to be backed up using rsync. But I would like to make the same process to restore the backup immediately in a local server trough rsync, that has to be ready just in case of failure of the remote server. What I've tried to do is to run the DumpPostUserCmd, so whenever a dump is performed in the remote server, I can have my local server updated. What I've find out is that when you perform a restore through the web interface, the command that performs it is (using ps ax in the backuppc server):

/usr/bin/ssh -q -x -l root myserver.wheretodotherestore.mydomain /usr/bin/rsync --server --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --relative --ignore-times --recursive . /path/to/restore

So, what I could find out is: /usr/bin/rsync is the command that the process runs in the server where I want to put the restore. Then the options, and finally, source and destination of the restoration. But, as you can see, the source is '.' but I cannot guess where to point that!

View 2 Replies View Related

Server :: Automating Task Of Log Monitoring?

Apr 6, 2010

Basically, I go through certain logs on my linux hosts checking for anything out of place. You know, the usual, /var/log/messages, lastlog, etc. What I've been using is just a simplistic grep statement that looks for keywords in certain log files, such as warn, crit, etc., with the -i flag to ensure no case searches. I thought, well, surely there are others out there doing the same thing, but more automated. Perhaps something that can check files for keywords and then notify, via email, if anything out of the ordinary is seen.

View 5 Replies View Related

Fedora Networking :: Trouble Automating IP Aliases

Jun 18, 2010

My system is F13 (upgraded from F11) with all of the latest patches available. I haven't gone through and combined all of the rpmnew configuration files, but none of them seem to address networking.I'm trying to get subinterfaces (secondary IP addresses) to work in Fedora 13. So far, I have been able to configure them on the command line, but not to get them to persist on booting.My base address for the NIC is: A.B.C.254. It is statically assigned.

View 5 Replies View Related

Ubuntu :: Tool For Automating Repeated Tasks?

Feb 10, 2010

I want a tool, which can record my actions on the gnome desktop and play it again. I must be able to edit the recorded script.

View 3 Replies View Related

Ubuntu Installation :: Automating Clonezilla Setup On PXE

Feb 19, 2010

I am trying to set up clonezilla on pxe so that it will start up and show the drones in the workplace a list of images, they choose the one named after the model of computer, and image it. Which means all clonezilla settings but image need to be set and it should automatically choose default settings at 1024x768 when grub pops up. I have looked for command-line options, scripts to run, etc... so far this is what I have...

Code:
#!/bin/bash
. /opt/drbl/sbin/drbl-conf-functions
. /opt/drbl/sbin/ocs-functions
. /etc/ocs/ocs-live.conf

ocs_live_run=`ocs-live-restore`
ocs_live_extra_param=`-p reboot -r hda`
ocs_live_keymap=`NONE`
ocs_live_batch="no"
ocs_lang="en_US.UTF-8"
ocs_daemonon=`samba`

I don't need the bash for selecting the image, but you might as well add that seeing as there's almost no info online for people who want a pxe server...

View 2 Replies View Related

Networking :: Automating The Terminal Type With NIS Logins?

Jan 25, 2011

I am running NIS in an environment that has HP-UX 11.11 64-bit running on a PA-RISC rp3400 server, with Fedora Core 2 32-bit running on intel workstations. All users use the tcsh shell by default in their profiles. If more information is needed please let me know.

Users who log into the domain via a terminal window on the workstations are prompted for the terminal type which is normally dtterm. I want to automate the process so users are not prompted to enter in the above information. My plan is to modify the global-cshrc file on the master NIS server. I had several questions concerning this:

1. Is it better to modify global-cshrc, or should this be done at the individual user directory?

2. What is the correct syntax to use in either case?

3. Will the changes made go into effect upon the next login, or do I need to push out the changes via the make command?

View 2 Replies View Related

General :: Automating Administrative Tasks In Fedora 10

Jan 10, 2011

I am a student at DeVry University, newly introduced to Fedora and Linux in general, and have a project whereby, we have been asked to consider some administrative tasks that we could automate via a script.I was wondering if there were any thoughts or directives from the community on what admin tasks you guys find to be of inestimable use in automating via a Linux script.

I am new to the Linux commands but have done a wee bit of programming before in C++ and others.I have also done basic DOS batch files before.

View 5 Replies View Related

General :: Automating SFTP In Bash With Password?

Jul 13, 2010

I wrote a script ages ago to automate an FTP transfer. This was easy as within the script you can specify the password with password <whatever>. Now I am wanting to do a similar thing with SFTP (SSH). I know that SFTP works differently and I cannot specify the password within the script - what do I need to do on the server I am connecting to to either "trust" the host I am connecting from or to somehow specify the password for "sftp user@some_host"? It's IP address will always be the same.

View 4 Replies View Related

Server :: Automating Linux Administration Through Web Interface

Aug 5, 2010

The question that I am posting here is quite interesting as it was asked in the interview I attended today. And, honestly, I could not provide a solution. Ok, here goes the problem statement:Design a Web Interface that has three text fields:

IP Address:
Subnet Mask:
Default Gateway:

And a button:

When we click the Submit button, the two entries must be set in the concerned files and then the network service must be restarted to bring the new IP Address, Subnet Mask, and Default Gateway in effect.As we all know that these settings can be done by the root user or a user who has those priveleges.The complete web interface needs to be done only in PHP. Some Shell Script can be used if required.

View 1 Replies View Related

General :: Automating The Package Configure Script Errors?

Mar 31, 2011

Need help in doing a tedious thing and no idea how to achieve this. The thing I am after is Makefile which generates after ./configure script runs successfully. Now the thing is when we run the `configure` script it may get stuck because of lots of reasons like needs mandatory options to pass with configure, library/header file is missing, etc. So I want to automate this problems as far as I can. As I am not installing the package so apt-get/yum won't hold here for me. So what should be your suggestions on achieving this. Should I study the configure script and the sample Makefile's inside the package

View 4 Replies View Related

Server :: Automating Multiple Minicom Sessions Simultaneously

Oct 5, 2010

Here's the setup: One x86 server (Red Hat 4) with two serial connections to an embedded linux device. One serial connection is to a power control so the device can the restarted, and the other is used for a console to this device. Both serial connections use minicom. People on my team VNC to the x86 server, where they find the two minicom sessions waiting for them as they are left open. I would like to automate connecting to the server and communicating over the serial lines.

Supposing I use ssh to the x86 server, could minicom be used over the serial lines without terminating the minicom processes seen through VNC? If not, is there a way to re-open those windows from within the ssh session, so a user who VNCs to the server won't have to reopen them? Could a single ssh connection control two minicom terminals simultaneously, or would there need to be two ssh connections? It is assumed a user and the automated process will *not* try to access the device at the same time; the automation would trigger during off hours.

View 2 Replies View Related

Slackware :: Automating Raid Failure Detection On Slack 13.1?

May 1, 2011

I just setup sendmail on my server to send emails and it works, now I would like to be able to get an email from mdadm if sometjhing was going wrong. I imagine most raid users have this feature setup.

Right now, I have 7 raid arrays and mdadm starts at boot time. Until now, I used Mr. Goblin's script (http://connie.slackware.com/~mrgoblin/files/rc.mdadm) (thanks Mr Goblin!) to monitor my arrays.

The script is started at boot time from rc.local. I created a small script in /usr/bin that send the following command to rc.mdadm giving me the status of the arrays:

Code:
/etc/rc.d/rc.mdadm status

and it works fine, but this requires me probing the arrays manually by calling the script from the command line. I would like to automate probing every 10 minutes or whatever and if a fault has been detected, I get an email.

[Code]...

View 14 Replies View Related

Programming :: How To Get Process ID Using Pidof

Jan 31, 2011

I tried to get process ID using pidof. It didn't give any error but a blank output at console Code: $ pidof -s instance1

$
But when I use ps -ef, I get the process ID Code: $ ps -ef | grep instance1
root 4174 21661 0 06:52 pts/1 00:00:00 grep instance1
provgw 30220 30219 28 06:46 pts/1 00:01:44 /usr/java/jdk1.6.0_18/bin/java -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

[Code].....

View 5 Replies View Related

Programming :: Force Two Process To Run On The Same CPU?

Jan 11, 2011

I'm programming a software system that consists of multiple processes. It is programmed in C++ under Linux. and they communicate among them using Linux shared memory.

Usually, in software development, is in the final stage when the performance optimization is made. Here I came to a big problem. The software has high performance requirements, but in machines with 4 or 8 CPU cores (usually with more than one CPU), it was only able to use 3 cores, thus wasting 25% of the CPU power in the first ones, and more than 60% in the second ones. After many, many research, and having discarded mutex and lock contention, I found out that the time was being wasted on shmdt/shmat calls (detach and attach to shared memory segments). After some more research, I found out that these CPUs, which usually are AMD Opteron and Intel Xeon, use a memory system called NUMA, which basically means that each processor has its fast, "local memory", and accessing memory from other CPUs is expensive.

After doing some tests, the problem seems to be that the software is designed so that, basically, any process can pass shared memory segments to any other process, and to any thread in them. This seems to kill performance, as process are constantly accessing memory from other processes.

Now, the question is, is there any way to force groups of process to execute in the same CPU?. I don't mean to force them to execute always in the same processor, as I don't care in which one they are executed, but that would do the job. Ideally, there would be a way to tell the kernel: If you schedule this process in one processor, you must also schedule this "brother" process (which is the process with which it communicates through shared memory) in that same processor, so that performance is not penalized.

View 1 Replies View Related

Programming :: Know Status Of Process With PID?

May 25, 2010

How can I programatically know the status of a process if its PID is known?

View 1 Replies View Related

Programming :: Using Copy_from_user With 2 Process?

Oct 20, 2010

Is there a way to send/receive messages between 2 process using copy_from_user and copy_to_user ? I'm looking for some article, but did not found anything.

View 1 Replies View Related

Ubuntu :: Automating Website Data Capture & Spreadsheet Entry?

Feb 3, 2010

I have a spreadsheet which I update regularly. This involves downloading CSV files from a couple of websites, copying data from those files into an OO.org spreadsheet and copying formulas within the spreadsheet (the number of rows of data varies, so when the number of rows of data increases, I need to copy more lines of formulas).

I'd like to automate this process, so that with a single command I can get the data from the websites and feed it into my spreadsheet without having to copy rows of formulas. Although I've done lots of numerically-oriented programming, I have no idea how to undertake this automation task. I don't even know which tools I need to learn to do it.

View 3 Replies View Related

Ubuntu Installation :: How To Deploying On Multiple Systems - Automating The Install

Jan 30, 2011

I am volunteering to assist a non-profit org with their technology, I will be presenting Ubuntu to the teachers this week and I hope to have a positive response to using Ubuntu!ith that said, the org being a bilingual school we will most likely focus on using Edubuntu. While I personally use Ubuntu and have installed it over the years on multiple laptops & deskptops, I am now facing the task of installing and maintaining on a dozen laptops and another dozen deskptops!While the install is very straight forward, installing on so many systems will be very time consuming! In addition, we would like to install additional apps such as Skype, Dropbox, French Language support, Possibly Ailurus and a few other apps.

I am looking for suggestions how to best handle this? What would be the best method to automate the install across the systems?Could the best approach be to install Edubuntu and all the apps we require on one system and then create an image from the "master system" to be used for the other systems?It seems that creating a master image would be ideal as it would include everything we need but I have never done that before

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved