1,446 Topics
![]() | |
Hi ! I have books.txt and it contain 20 books with author,the books.txt look like so.. Mark Lutz/learning python James payane/Beginning Python Noah gift/Python for Unix and Linux System Administration If user search for book it just print book and author if user search for author print (“you cannot search … | |
HI there, I am doing my internship with accenture and i got my first assignment. Basically i first thing with this task is i need to find way to modify the query so that it will pull only the data that has existed/activated more than one hour. This is the … | |
**can help me please .. when i need to remove MAX_SIZE from my code and $dir='upload'; because function create thumbnail in images folder Nd i think error in this code if(move_uploaded_file($t_name,$dir."/".$name)) {** <?php //define a maxim size for the uploaded images define ("MAX_SIZE","1000"); // define the width and height for … | |
Hi :). I use this code to create a file: #include <cstdlib> #include <fstream> using namespace std; int main () { ofstream file("main/articles/giraffe/article.txt", ios::out); file.close (); return 0; } How can I simplify **create path of folders** (on **unix system**) "main/articles/giraffe/" - if folder "main" doesn't exist? With using standard … | |
Ok I started writing this program for a school project in Eclipse in windows and now shifting to vim in UNIX and I am getting a bunch of errors. I am currently trying to figure out the top two errors (And yes the funky characters are what I see). Here … | |
Hi, my project works with emulating the file system. I can invent my own as well. I'm developing a unix like shell which will provide all the file handling commands similar to unix. Basically I want to allocate a large file on the actual file system, and treat it as … | |
Basically, am creating a mailer system to send a mail to my inactive members to do activities in their account if they have not logged in since 30 days. My previous login date stores in my database in unixtimestamp hence i coded as below. select email from myusers where WHERE … | |
I am finding myself a little confused about how Python imports. Would the following be a correct statement: In any Python interactive shell, if the shell (since it was initiated or opened) has never before imported "myScript.py" then if the user types in "myScript" he will get an error like: … | |
So I have an assignment where I am supposed to create an oop that will run on a provided Unix server. I have a Mac so when I run the makefile in Terminal, I don't get any errors. But when I try to run the makefile in the provided Unix … | |
Hello... I'm new to Linux environment because of Windows.. So I would like to familiar with Linux/Unix environment also.. In this way I need to know something in Linux platform... major thing is still I don't know how many primary partition can be created in Linux platform.. is it same … | |
I need to take difference between two dates in normal date format like "2012-03-30 17:21:33.027" using time_t..previously i was using unix timestamp so i used data type long int...but i need to know how to compare using time_t... plz help..... | |
I Want To Make A Utility Like The Old DOS Command "rdisk" In C++. The Things I Want It To Be Able To Do Are: WIN: Be Able To Specify The Drive Letter (Like rdisk's /:Z) UNIX: Be Able To Specify The Mount Point (/mnt/rdisk or /media/somthing, etc) BOTH: Make … | |
I need help figuring out how to count sentences from a .txt file. The following guild lines are what is considered to be a sentence: 1. A TERMINATOR followed by two spaces 2. A TERMINATOR followed by one space and end-of-line 3. A TERMINATOR followed by end-of-line 4. A TERMINATOR … | |
My simple Serial Port code doesnt work. Not sure if its my code, or my USB adapter. Can someone try it / tell me what ive done wrong? [code] #include <stdio.h> /* Standard input/output definitions */ #include <unistd.h> /* UNIX standard function definitions */ #include <fcntl.h> /* File control definitions … | |
Hey guys, I'm new in Linux/Unix and just whant to figure out one simple thing: So lets say I wrote my c program in vi in Linux, and whant it to be on the unix server. When I'm trying to just copy and paste text from vi. It apperas in … | |
I'm working on a tcp server and client for linux. I want the tcp server to send a 10MB file to it on request and I want the client to save it to local disk. I would appreciate any help on it. Thanks for the help. jdm server: [CODE] /* … | |
Hey guys, I have the idea of creating a custom Java terminal, I know what I need to do for commands, etc, but I have no idea on how to style it like someone would with a UNIX terminal/Windows Command Prompt, or prompt it so that whenever a new line … | |
can some body expaly me this command [CODE]sed -e 's/<[^>]*>//g' test > test.t [/CODE] thank you | |
So I have a matrix class that must run on a unix/linux server. The main is a test file that is provided by the instructor. When I compile my code in visual studio it works fine except for test 8 because I can't figure out how to return a print … | |
I have a requirement to copy files from a temporary file directory to a unix file system using scp. Please provide me a sample code for this | |
I'm writing a tcp server and client program in C on linux. It compiles and works under linux, but when I try to compile it using terminal under mac I get errors. If somebody knows why I would appreciate telling me. Any way I have most of the program done, … | |
So I am sorta interested in viruses. No, I do not plan to make the next conficker or even something that will trash my brothers PC. But I want to learn about how they work. What they do that makes PC's let them into their system... So for a first, … | |
Hi Everyone, I need a replace a string (ex : this) with the string (ex : that) in each line of a file (sample.txt) using a C Shell Script and I am not allowed to use sed,awk and replace command in the unix , So i tried to use tr … | |
Alright guys, I've been trying to think how to do this and I keep confusing myself. It's part of a project using piping in UNIX but first I need to get this small program running properly. I want to pass the final result (Hex value) to another program that will … | |
Im writting a very simple command-line. I want the > Charecter to come up every time a command ha finished what it's doing (easy) AND when the user presses enter with nothing on it. For example ($ is currssor) I want this: [CODE]> >$[/CODE] Not this: [CODE]> $[/CODE] How would … | |
Need some help. My game locks up when you go to load file and it just locks up. Please help. [CODE] /* WumpusGame header file Contains the WumpusGame Class. This is the main workhorse of the program, and contains all of the global data, including the master world map. WumpusGame … | |
Can Anyone explain about how to establish a connection to a same server with different private/rsa/identity using identity file. | |
hi! What is makefile? How does it work? Is it done in the terminal? I am using Unix OS | |
I have a directory named action at the same level as my basic script. I want to include a file called Upload which is in the action directory in my script. I keep getting errors saying the script can't find my file, but my script looks identical to the book. … | |
Shell Script Tasks This is a homework assignment to create the below described shell scripts. I need the scripts so I can complete my university education. If you would like to help me and can create these scripts, please send them in a zip or rar file to my email: … | |
Hi ALL, Can any one suggest me on below requirements with less memory and cpu time. I have used below code and seems it is not efficient for huge files. fgrep -v -f file2 file1 >file3 This will output file3 containing all lines from file1 that are not in file2. … | |
I'm trying to write an echo like thing doing this : [CODE]> echo Muffins Muffinst > echo two muffins two muffins[/CODE] The problem Is that the program isn't being started from command line, The > is my programs input prompt (trying to write a very simple command line) How would … | |
Hi Everyone, Everyone likes talking about what distro they use at home, what about what distro of Linux or UNIX is best to learn as a young tech admin. I am currently heavily into AIX with some Red Hat and Suse experience. I am noticing a large shift to Linux … ![]() | |
I am working on a website where I have 2 php pages. 1st page: addfb.php 2nd page: fbadded.php Now, "addfb.php" contains a form with a text field and a submitt button with form action method set to "fbadded.php" Now whenever I click submit button on addfb.php, instead of going to … | |
I don't know how many of you all know about this already. But I found this pretty interesting. Check it out : [URL="http://www.gnu.org/fun/jokes/unix-hoax.html"]http://www.gnu.org/fun/jokes/unix-hoax.html[/URL] Enjoy..:P :-O :D | |
[CODE] main() { char *p="dcis"; while(*p++!='\0'); printf("%s",p); } [/CODE] Why this is printing %s in my unix box with gcc 4.6.1 ? | |
My distributed operating system lab requires me to implement the election algorithm (bully and ring) in c. My current idea is to run several instances of an ouput file on different terminal, each symbolizing a different process. Now i'm facing the following problem and if you guys could just point … | |
Hi, I have to run purecov with purify in unix. What is the command to run both together in a single line?? What options have to be set for purify and purecov?? Please suggest me some solution... Thanks, GJ | |
Hello, Can someone tell me the equivalent perl script/command for following unix command: sort -t"|" -k1,1 -T '/temp' input.txt > output.txt Here, I want mention different physical directory for temprary sort file storage. like - T in unix shell command. In other word, How to mention different workspace directory in … | |
Hi, I'm trying to check if the user that im deleting exist in the database before deleting them, but it does not recognise the id (delID) the second time that i enter the id (even if it is right). Any suggestion [CODE]delete(){ clear echo "-------------" echo "DELETE RECORDS" echo "-------------" … | |
Hello, I need the answers for these questions please. Thank you very much. 51. What is the major number for LVM DSFs using disk layout 1? A. 32 B. 64 C. 128 D. 256 52. If vg05 has two logical volumes created using the default naming convention, overall, how many … | |
Hi, I'm pretty new with the R language. I'm just trying to get familiar with R and wrote a script in gedit (should I use emacs instead?), [CODE] x <- [10.4 5.6 3.1 6.4 21.7] y <- [12,5.6, 7.2, 1.0, 9.3] plot(x,y) [/CODE] then I went to the command window … | |
Hi, i have to compile some coding to show how dtmf works. Any idea how? I see most of it uses unix c or linux programming? I have only been programming with windows C. Pls do guide me step by step on how to program in these languages. here are … | |
Where are the function bodies to functions like socket,bind,accept, etc??... Using the c socket network programming for unix based systems, we use the api, but where are the function bodies to these functions. Im doing network programming, and I fill in the socket functions, bind, accept, write, read, etc, but … | |
Hi everybody, Do you think that linux and other unix os will dominate over microsoft ? Thanks | |
This is just a little bit of fun, mine would be HFS+ because of the following; [LIST] [*]Seek Speed for files [*]Auto Optimisation [*]Journalling (Although technically HFSJ) but is in HFS+ [/LIST] Dislikes [LIST] [*]Compatibility [*]Slows down when reading many files ( Badly ) [/LIST] | |
Dear All, I have just started, playing with unix shell programming. I am in need to know, that how to get the position of cursor at unix shell. To set the cursor position i am using command # tput cup x y | |
Happy new year friends, I have been having a provlem with my pendrive saying its write protected i have visted variouus sites and usb formatter Tried to format with windows setup and unix commands Tried to reset windows keys BUt no avail plaese suggest me some ways | |
Hi, I just started unix programming . below are the two files i am using for reading/ writing from/to a named pipe called RNP. read.c is run on one terminal and write.c is run on other terminal. write.c is accepting the input , but read.c is not reading the input … |
The End.