409 Topics
| |
would you help me how i can connect a unix server and send a command using .net for example changing chmod of a file? Unfortunately there is no usefull information about this on net. But i want to do this using ftp server(not domain name or ip address) | |
Hi all, How to remove duplicates in Unix. Suppose i have file like bellow 1,primary,a 1,secondary,b 2,secondary,c 2,secondary,d i want the output as 1,primary,a 2,secondary,c Please give me the solution for this command.. Thanks in Advance.. | |
My network card doesn't have any UNIX drivers, but it does have windows drivers, so I'm trying to install ndiswrapper. It seems like the default installation of Ubuntu server doesn't have python installed, so I can't dpkg niswrapper in. Is there any resource to help me learn how to hunt … | |
> this is my udp server code #include<iostream> #include<arpa/inet.h> #include<unistd.h> #include<sys/socket.h> #include<sys/types.h> #include<stdio.h> #include<string.h> #include<stdlib.h> using namespace std; void error( char *msg) { perror(msg); exit(EXIT_FAILURE); } int main() { int sockfd; sockfd = socket(AF_INET,SOCK_DGRAM,0); struct sockaddr_in serv,client; serv.sin_family = AF_INET; serv.sin_port = htons(53000); serv.sin_addr.s_addr = INADDR_ANY; char buffer[256]; socklen_t l … | |
So I'm trying to write this program in C that will take a message the user types in and encrypt it using an RSA public key that the user supplies. I know there are encryption functions and libraries in C but I want to actually recreate the algorithm in code … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Can Anyone explain about how to establish a connection to a same server with different private/rsa/identity using identity file. | |
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. … | |
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 … | |
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 | |
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'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 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] | |
I'm attempting to port a header file for a program that was designed for a Unix environment. i'm'; aware of the type defined variables like s16, u8 and such, but is their anything else i need to know about Unix C? not to familiar with it. thanks. sample portion of … | |
Hi Guys, I'm new to python - how to execute dos2unix from python - subprocess.popen with shell = False ? >>> cmd = subprocess.Popen(["dos2unix","./FEED1/bin/*"], stdout=subprocess.PIPE) dos2unix: converting file ./FEED1/bin/* to UNIX format ... >>> dos2unix: problems converting file ./FEED1/bin/* All help appreciated. | |
How are devices represented in UNIX? | |
I need help please.write a shell script that will take the information from two files and combine into another file I created both files in vi. file1 David 734.854.5643 Roberto 313.432.4532 Sally 267.423.5412 Mary 435.432.7654 Ted 324.642.6743 Alice 234.576.3245 Frank 342.465.6754 second file file2 Roberto Tuesday 2 Sally Monday 8 … | |
I want to get unix time in my program, google just brought up how to get time on a unix system (I'm on a dos/windows system). Is there an easy (can fit in less than 20 lines of non-system dependent functions and without any API or WIN32 [unless simple] functions) … | |
hello every one I have a problem that drove me crazy last couple days I know I have to use loop structures but I can't figure out how to put the right pieces together. I'm not asking for a complete answer because I want to learn so please help me … |
The End.