1,446 Topics
![]() | |
Hi, I've recently decided to move toward a career in Web Development as that's what i'm most comfortable in. I own my own website & learning new web technologies is something I've learned I have a passion for. I have a BS in Computer Science and have a full-time job … | |
I have a bit of an odd one here and I am hoping someone might have a clue as to what I am missing... The plan was to take a Fedora 3 2TB server and replace it with a Fedora 7 4TB server. The system has been duplicated and the … | |
to this servlet i have to get values of to,from address and filename from a jsp though all jar files are put in class path the servlet is not recognized public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try{ String to = request.getParameter("to"); String from = request.getParameter("from"); String … | |
I need script for pinging the machines in subnet make list of alive hosts with there OS version redirected in a file. I am from System admin field and not aware of scripting and also beginner of UNIX. Thanks in advance. | |
Hi, Im creating an audit of all our UNIX systems which all run solaris (dfiferent versions) I need to gather the serail number from a few of the boxes that are located on another site is there anyway to do this: [B]BUT[/B] I cannot install any program to do this … | |
Hi I am programming in Unix. My task is really simple, but I don't know and where to debug this problem. My C program opens up the "ls" manual and makes an exact copy to a new file. However my program stops/freezes in the middle of read. (It works fine … | |
I am having problem with my loping. I don't know if I have chosen the correct approach. GOAL: I need to insert into a table event types for a specific date range. The calendar the event type is displayed on is divided into 15 minutes time intervals A group consist … | |
Hello I am new to Unix. Please help me out. My Scenario: I am first collecting all the file names present in the directory with structure myinfo/yourinfo/supplierinfo I have four files with the names myCollector.java, yourCollector.java, someCollector.java, everyCollector.java. in the directory. I am reading the file name and i am … | |
Hi All! I'm looking for ideas for word puzzles, and my wife seems to be a bit short on ideas :). In my spare time, I've been building an educational resource site, and so far just have a browser-based crossword generator on it. I mostly do this stuff for fun, … | |
Hi Hope u r all well... here is my problem... i want to remove duplicate entries from a text file while maintaining the order of the text say if the text file contains 123zabc 456def 123abc 456def. 123def 456def 123abc i want the result to be like 123zabc 456def 123abc … | |
I'm running OpenSUSE 10.3 on a server with SAMBA providing file and printer services to PCs in my house (XP & Linux). I have a CRON entry starting a PERL program I wrote to backup the shared SAMBA files and other data to DVD on a weekly basis. Currently the … | |
to my findings there are to many windows baised programming, not enough unix or mac (which is unix baised) colleges. what i need help on is what colleges specialize in unix and/or mac programming. (cis degree) and please please dont say devry, they are 100% strickly windows and windows is … | |
in the book "advanced programming in the unix environment" the authors give the following function to "deamonize" a process [CODE=c] void daemonize(const char *cmd) { int i, fd0, fd1, fd2; pid_t pid; struct rlimit rl; struct sigaction sa; /* * Clear file creation mask. */ umask(0); /* * Get maximum … | |
I am designing an ftp client prompt in C (unix environment). At this point, I have an infinite loop with an fprintf of the prompt on stdout and an fgets for reading user input. I need help with the structure of my program. How do I implement this? I have … | |
Hi, I have the PHP file as coded below. Is there any way to make directory files open in a new window. I mean, this file shows files in a folder in which it sits in, but how can displayed files be opened in a new window? Cheers Aaron ------------------------------------- … ![]() | |
I am writing client and server programs for a simple FTP. I am allowed to use chdir, getcwd and getenv. What would be a correct procedure to expand a user provided path correctly using these functions, assuming of course the user supplied path is stored in a c-string? Thank you. | |
So, I'm just about to graduate from college with my CS BS. I want to be able to use some of the programs I made in my courses as samples of my coding work when looking for jobs. However, whenever we were working on these programs in class, we had … | |
hello, I am very new to python scripting and would require some help. Thers a product called Ajaxterm which makes use of python scripts and Ajax that I am using. It's a web based unix terminal emulator. I have set this up to work correctly. But there are some unicode … | |
I am calling one c++ exe from my unix shell script, i am trying to set the env variables using putenv() thru my c++ code. Now i want to use these varibles in my new exe which is there in the same shell script(set by using the previous exe ) … | |
Hey, I'm brand new to this site. Hopefully someone can help me out. How do you clear the console screen without any system-compatibility issues? This means that SYSTEM("CLS") and anything from a windows library (like #include<windows.h>) is not acceptable, as it will not run on linux/unix etc... I know theres … | |
I am writing a server function and an error message is defined as: [code] #define UNKNOWN "Unknown" [/code] I have a function: [code] void search(int sockfd) { FILE *file; char arg1[MAXLINE], arg2[MAXLINE], title[MAXLINE], line[MAXLINE]; file = Fopen (PATH, "r"); while (true) { if (Readline(sockfd, title, MAXLINE) == 0) return; Fgets … ![]() | |
I'm unsure if this is exclusively a unix/linux scripting forum but I need help writing a windows script (I'm more of a perl/unix scripter). I need to be able to periodically clean out the user profiles on a presentation PC in a conference room. Therefore I need a script which … | |
I am very very new to all of this stuff. I have been given a username and password, and I try to run this command: mysql -p -u username < filename But everytime it prompts me for a password, and does not let me type anything in. Please let me … | |
Hi All, I am working on a situation suppose i am calling one exe(C++ code) from unix shell script now i want that 2 values in that unix script which this c++ code will get from some URL. Any Idea how can i get those 2 values from C++ code … | |
I am trying to relearn C by going through the K&R exercises (I have the first, non-ANSI, edition...that's how long it's been since I last programmed in C under Unix as a software engineer). I have Visual C++.net version 2003 on a Windos XP computer. I would prefer to continue … | |
hi everyone, I would like to thanks for replying me in my first thread, and now i am confused about unix, i mean what is the defference between the linux and solaris, how do they are related with unix, and which one is better. where can i find free downloads … | |
I am new to Daniweb and I need some help with my programming code in Unix. I have written an if-else statement for Bash Scripting and it doesn't work. I have been told that variables would help with my code but I still don't see my program working. I'm suppose … | |
hi there, i have some knowledge about Unix and now i wanted to choose Unix admin to start my career. i wanted to know all the basic info about unix. like what are the version's and types of operating system, which one will be best for me. because presently i … | |
What is the future of JAVA ? JAVA was overcoming Microsoft's .net because of it's platform independence. As in coming couple of years , Microsoft is going to launch a version of .net that will support all platforms like windows, unix, linux etc. Then will .net become trouble for JAVA … | |
Hey All I am having issues with my code and it has something to do with the way my double linked list is working. I cant figure out if its not setting the m_prev pointer if at all and what is going on with my m_next pointer. Any help would … | |
Hi, I'm going to begin school for CS in a couple of months, and am trying to get started with some of the material on my own. I need to learn some Java; I've done a bit of C++ in the past. The prof sent me an email saying at … | |
Hi There, New to Linux/Unix, wanted to adopt UNI/Linux System Admin as profession. Have been DBA/System Admin for some time. where can I take a UNIX System Admin course/training to get on the road fast? Thanks for any advice. Data Sheet (The Linux/UNIX learner) | |
Hello, I am trying to migrate my application from an older unix box to the new Hp unix box with Itanium architecture.The problem I am facing is with the different versions of the aC++ compilers installed in the 2 boxes: older unix machine has : aC++ Version A.03.33 new machine … | |
Hi all, This code block is making sure the user is entering the correct character, either y/n. char response; cout<<"\nDo you want to continue? (y/n): "; cin>>response; cout<<endl; while(response != 'y' || response != 'n') { if (response == 'y' || response == 'n') break; cout<<response<<" is an invalid input. … | |
I am an Electronics and Communication Engineering graduate and have now joined into the Electrical Engineering and Computer Science Engineering branch of a university to pursue my Masters. I need to pick a course this quarter and I'm stuck with a problem. I have the following options: Operating Systems Computer … | |
If i get a raid addon card (pci) not SATA IDE how do i work it i want to have to ide drives reading as one on freenas but how do i install it on freenas here is the link of the raid card (budget) [url]http://www.microdirect.co.uk/(13912)MRI-2-port-IDE-RAID-01-ATA133-PCI-card.aspx[/url] Becasue i heard that … | |
So here's the deal -- I'm dual-booting Mac OS X and Windows XP on my MacBook. On Mac OS X, I have the clock synced to network time. And, being a good Unix system, it sets the system time to GMT. That's all fine and dandy until I install Windows, … | |
Hi myself Anirban Adhikary from KOLKATA, INDIA. I am 25 years old a B.S. degree holder major in electronics & telecommunication.Presently I am working as a UNIX administrator on RHEL 4 and CENTOS platform. Though I am working as a administrator but my presently I have to do a lot … | |
first greeting to everyone here. this is a nice forum that we can share and discuss. I used to do a GUI program in c using GTK 2.0 under the cygwin platform, but the built file (.exe file) can only display the GUI at the Unix environment (cygwin X11 server), … | |
[COLOR=#000000]Hi all, need some advice I’m writing a program in c. And its objectives would be; 1. Monitor error code occurrences, 2. Deleting Instance in the DB and having a graceful exit. And writing this program in UNIX environment I’ve been searching for some samples thorough, and suggestion?[/COLOR] | |
hi everyone, the below program is yielding error "segmentation fault",when it is run under unix. This is a file copy program using command line arguements. Without using command line arguement,i mean,taking filenames directly in the program runs successfully. Can anyone tell me what "segmentation fault" means in unix? ------------------- [code=c] … | |
Hi there, I have heard so much about Unix but still know so little. 'Its an operating system that puts me in control' is about as far as i got. What are the potentials? What would i need to do to my windows Xp laptop to run Unix? What kind … | |
In my current Unix/C++ application, I need to pipe a file through the sort(1) program before reading it. The input is large to huge, so in-memory sorting won't work. I'm used to using fork(2), pipe(2) and exec(3) in my C programs. I know I can do the same in C++, … | |
Hello All: I have a question: How can you perform Password Administration using "C-Programming" functions. Basically, we [B][I]had [/I][/B]UNIX Shell script that performed the following: 1. Got the current users password. 2. Did a time computation on it - had it expired yet, and when it will 3. Queried if … | |
Hi All, The following script checks whether the filename is correct then the script proceeds to check whether you have read,write and execute permisiions to the file and displays an approriate message. [CODE]#ss23 #usage ss23 echo "enter any filename \c" read fname if[!-z "$fname"] then if [-r $fname -a -w … | |
I have comma seperated values in a flat file, example below: [B]RStndrd,Mer,1902 PAR GRN,ParentGroup,[/B] I am interested in getting the third parameter from above, ([B]1902 PAR GRN[/B]) in a variable called MyID...i am using the command below to get the third variable [B]MyID=`echo $line|cut -f3 -d ","`[/B] but using the … | |
Calling All Shell Scripters, I am a web developer needing assistance from someone with shell scripting expertise. Does anyone have a unix shell script that can look into a directory and identify any "*.zip" files and ftp them to a remote server? Upon successful completion of the FTP transfer I … | |
Hello everyone! Below is a sample flat file (sampleflatfile.dat) i have on UNIX: [COLOR=#000000]AMPS,2324,Subscriber,Unknown,SingleDay,20070413,20070413,[/COLOR] [COLOR=#000000][/COLOR] [COLOR=#000000]ALPEnt,4516,AllMember,Unknown,DateRange,20070411,20070419,[/COLOR] [COLOR=#000000][/COLOR] [COLOR=#000000]AGLT,2156,Summary,Unknown,[/COLOR] [COLOR=#000000][/COLOR] [COLOR=#000000]DUPP,2536,Yes,Unknown,[/COLOR] each line above represents a report to be generated...therefore, the content of the sample flat file above means we need 4 reports (because there are 4 line)... the file above … | |
Can someone please help me out here. My server (Apache specially) has been acting wiered whole day. [CODE][Sun Jul 1 11:01:33 2007] [notice] Apache/1.3.37 (Unix) PHP/4.4.4 FrontPage/5.0.2.2510 mod_ssl/2.8.28 OpenSSL/0.9.7a configured -- resuming normal operations [Sun Jul 1 11:01:33 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec) [Sun Jul 1 11:01:33 2007] … | |
Hello All: I am attempting to do a loadtest on a process which is "suspect"... Does the following code generate multiple instances....???? [code] for ($i=0; $i <= $iteration; $i++) { printf(" Executing Iteration:==> %d\n", $iteration); system ("master_menu &"); } [/code] As you can see, I run the execution in background. … |
The End.