Ubuntu :: Program To Write Commands Like Code?

Nov 14, 2010

I'm a noob in Ubuntu. I need the program which will help me to learn different ubuntu commands. I often forget them and after reinstall I don't want to search them in Google. Now I write them in the standard text editor and my code looks like this:

Restore MBR:
Delete GRUB (fixmbr)
Ubuntu terminal then:
sudo apt-get install ms-sys
sudo fdisk -l

[Code]...

View 2 Replies


ADVERTISEMENT

Networking :: Code For At Commands Parsing In C?

Feb 1, 2010

I want to parse the AT commands using C programmemy problem is to send message using At commands in minicom from one system to other system using socket programmingif i will send here AT on other system it should respond as OK,and if we will send AT+CMGS="ip address" "message", on other system this message has to display can any one please tell me the code in C language

View 1 Replies View Related

Software :: AT Commands Parsing Code?

Feb 1, 2010

I want to parse the AT commands using C programmemy problem is to send message using At commands in minicom from one system to other system using socket programmingif i will send here AT on other system it should respond as OK,and if we will send AT+CMGS="ip address" "message", on other system this message has to displaycan any one please tell me the code in C language

View 3 Replies View Related

General :: View The Source Code Of Different Commands

Jul 24, 2010

i want to see the source code of different commands .how they are working ??for ex why ls is listing all the files and directory .what code is written for ls so that it is listing like this.where the source code is kept by the os

View 2 Replies View Related

Ubuntu :: Write A Code For Encryption / Dec?

Apr 30, 2011

i need to make a to-do list for my project, everything is fine so far. but i really dont have a clue on writtiing this part: we need to write a programme that takes input from a text file then either encrypt or decrpyt it. according to the ASCII code of this charecters the user should give us his/her own keyword then the program will save the output in a new file .

[code]....

View 4 Replies View Related

Ubuntu :: Write A Script With Several Commands Like Searching Copying?

Jun 27, 2011

I want to do some sort of emacs scripting. Means I want to write a script with several commands like searching copying etc. and then execute it inside of emacs. I'm sure this is possible, but I wasn't able to find a way to do so.

View 2 Replies View Related

Programming :: Can Bash Commands Be Converted To Assembly Like C Source Code?

Nov 30, 2010

I have read where C is first converted to Assembly before its final compilation to binary. Is there a way to do this with Bash commands? I would like the understanding that Assembly allows to Bash somehow.

View 14 Replies View Related

Programming :: Write Iptables Commands In Perl?

Jul 14, 2010

I've worked with iptables in shell, but now I need to write an iptables command with perl. here is my code that I've tried but it didn't work :

Code:
#!/usr/bin/perl
print "Content-type: text/html

[code]...

View 4 Replies View Related

Programming :: Write Output Of Two Commands To A File?

Oct 12, 2010

I'm writing output of top command to a file However since top does not provide time I would like to append the 'date' command and then write all this to a file.

so something like top -d 1 -b; echo 'date' >>file

View 1 Replies View Related

Programming :: Write Code To Video From The Net?

Jan 7, 2010

I have source code that plays video stream, and can open a remote video file if provided with a URL. But I have a problem getting video from ...... the URLs I get look like:

[URL]

and my code expects something like [URL] I need to modify the code, such that it will find the actual file.

View 1 Replies View Related

Programming :: How To Write UI-independent Code

Jan 11, 2011

How do you write a program that is independent of the UI (the functionality is a library, and you have, for example, CLI and GUI interfaces as separate apps). The problem I have is how to report status and prompt the user from within UI-independent code? I could split it into parts that do not require any user interaction, but then most of the functionality will be in the UI, not the backend.

View 10 Replies View Related

General :: Keeping Mtab Open To Write Next Commands?

Jun 21, 2010

I'm looking at an rc.sysinit:
# Remove stale backups
rm -f /etc/mtab~ /etc/mtab~~
# Enter root, /proc and (potentially) /proc/bus/usb and devfs into mtab.
mount -f /
mount -f /proc
mount -f /sys >/dev/null 2>&1
mount -f /dev/pts
I can't figure out what those "~"'s are doing. From the comments it's keeping mtab open to write the next (how many?) commands?

View 1 Replies View Related

General :: Read/Write Xml File Through C++ Code?

Mar 18, 2011

I am trying to write a C++ Code to read write a XML file in C++.I researched a lot and find xerces is used for that but I am not able to write the code for that.Please provide me some links on how to run a code that R/W a xml file in C++.

View 1 Replies View Related

Programming :: Write A Makefile For CUDA/C++ Code?

Jun 19, 2010

I'd like to write a Makefile for my CUDA/C++ code but I didn't know how things work with CUDA, I mean there is a nvcc compiler but I don't know what I've got to do with this.
Do I have to firstly run nvcc and then g++ or only nvcc to compile my CUDA/C++ code ? I found nothing on the web explaining such basic things .

View 1 Replies View Related

Programming :: MATLAB - How To Write Cleaner Code

Apr 28, 2011

I am writing some code in matlab and I would like to do some reading of how to write cleaner code and how to name variables and write comments. One more questions. Let's say that I find for example a file that has really nice structured comments. For example specific format commenting function inputs, outputs author code. Can afterwards copy and paste and use someone's comments format or this is might some copyright problem?

View 1 Replies View Related

General :: Write A Shell Script To Simulate The Built-in Commands?

Nov 7, 2010

i was trying to figure out a way to write my own linux commands.. in fact i wanted to write a shell script to simulate an already existed linux commands like 'cd','ls' and'adduser'i just dont know the language of scriptting and even doesnt know the steps to make a script

View 3 Replies View Related

General :: Write Ns Code That Implements LEACH In A Network

Apr 25, 2010

I try to write a code that allows ns to simulate the operation of the leach protocol in a network but I can not find documentation that would allow me to do that. how should be the configuration of nodes and the base.

View 1 Replies View Related

Fedora :: Text File Manipulation With Standard Commands In BASH - Remove The Stock Code

Oct 10, 2009

I need to do some text file manipulation which I think should be done with standard commands in BASH. I'm looking at comma seperated text files (stock market data). It comes in the form of date, stock code, open, high, low, close, volume. What I need to do first is move all data with same stock code sequentially into individual files.

While doing this since the stock code will now be the file name I need to remove the stock code. Next I need to filter out overlapping data from different files with the same date. ie. where two files contain the same date on the one line only one line will be added to the combined file. I think there must be a tutorial out there for basic text manipulation like this, I just haven't found it yet.

View 11 Replies View Related

Ubuntu :: Run Other Program Commands From The Terminal?

May 7, 2010

Is there any way to run commands of other programs from the terminal?opened a doc file from the terminal using>openoffice.org filename.docis there any way to executeSELECT ALL[ctrl + a] orCOPY [ctrl + c]from the terminal?

View 2 Replies View Related

General :: Write Cpu Affinity Code To Map 8 Nodes To 8-cores Computer?

Jan 24, 2011

I have a 8 core computer, which has 8 logical processor in total. I want to create 8 process(nodes). Each node is mapped to each logical processor. The order is code...

I wrote the code as below, could you please see whether it is correct? code...

View 3 Replies View Related

Security :: Write Secure Code For Bash Scripts In General?

Feb 9, 2010

how to write secure code for bash scripts in general? Strangely I didn't found anything in google and in the forum so far. If someone here is willing to review a bash script for me (about 600 lines).

View 6 Replies View Related

Ubuntu :: Run A Program In Code : Blocks

Apr 3, 2011

i have installed ubuntu 10.10 marverick, and on it i have installed code: blocks 10.05 and i want to run a program using opencv 2.1.0 in code: blocks.. when i build the program it builds properly without any warning but when i run it it does not show any output....

View 1 Replies View Related

General :: Write A C Code To Ping IP Addresses Which Are Read From A Text File?

Aug 3, 2010

i need to write a c code to ping IP addresses which are read from a text file and need to log the response time in another text file.

View 4 Replies View Related

General :: Run Commands Using A Java Program?

Apr 9, 2010

I want to execute Linux commands using a Java program. I came to know that we can use Runtime.getRuntime().exec("commands") to execute the commands through the program. I'm new to both Linux and Java.

View 2 Replies View Related

Ubuntu :: How To Install Program From Source Code?

Nov 2, 2010

I am wonder if somebody could take the time to teach me to install or compile a program from source.I have downloaded ZSNES from sourceforge but cannot figure out how to install it from the command prompt or using the package manager.

View 9 Replies View Related

Ubuntu :: Code: Blocks Error When Try To Run Program

Nov 30, 2010

I installed Code:Blocks (8.02 from ubuntu software center) and try to run sample program (at first I tried some program related to OpenCV and configure the project for it).

The Build went OK but I cant Run the program. So I tried the simplest progrma of hello World and still I get the same error even on a clean new project.

The Error: "error while loading shared libraries: cv.so can not open shared object file : No such file or directory"

View 1 Replies View Related

Programming :: Write Some Code That Involves Creating A Function To Return A Vector Iterator?

Jan 21, 2011

I'm trying to write some code that involves creating a function to return a vector iterator.I'm not sure what is wrong.

Code:
template <typename T> class VectorTemplate
{

[code]....

View 4 Replies View Related

General :: Program Stopped Responding To Commands?

Apr 26, 2010

I got to the prompt in the subject line. Then I typed grep /sounds/ and return.Then the program stopped responding to commands. I could type things, but nothing happened. Not even when I typed kill -9 and return.Why did the thing freeze up? I don't think there is folder /sounds/.

View 2 Replies View Related

Programming :: Add Commands To A Limited Shell Program?

Apr 3, 2011

In below program I want to add (as part of the valid_cmds string) the pwd (print working directory), lo (logout), and cd (change directory) commands. However when I add those into original program ;
char *valid_cmds = " ls ps df pwd lo cd";
they are not working I have the cout message huh?
Original source code is below code...

View 3 Replies View Related

General :: Write A Script To Execute A Fortran Code That Reads In Parameters From Keyboard Typing?

Apr 18, 2011

I am trying to write a script (especially C-shell) to execute a fortran code that reads in parameters from keyboard typing. I will have to process this .F code for many times with the parameters the same for all my data files, therefore, I don't have to type in everytime I execute the .F code. But I don't know what is the command in c shell to read in a text files that contains all the parameters I want and can make the shell read in appropriately to feed the .F code.

View 3 Replies View Related







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