140 Topics

Member Avatar for
Member Avatar for Rizzuti

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 "-------------" …

Member Avatar for Pjieter
0
176
Member Avatar for Karlwakim

Hi everybody, Do you think that linux and other unix os will dominate over microsoft ? Thanks

Member Avatar for caperjack
0
184
Member Avatar for mikulucky

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]

Member Avatar for thines01
0
132
Member Avatar for bossman5000

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 …

Member Avatar for tudloiako
0
427
Member Avatar for bossman5000

write a Unix shellscripthat will take the information from two files and combine into another file I created both files in vi and they are 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 and the second file is file2 Roberto Tuesday 2 Sally …

Member Avatar for L7Sqr
0
210
Member Avatar for Airshow

[B]Environment[/B] Development: Amazon EC2 instance. Operational: Unknown at this time [B]Scenario[/B] This is a *nix question but things start out in php, so please bear with me. I'm trying to get php script (php_script_1) to to run another php script (php_script_2) in the background. This will allow php_script_1 to complete …

Member Avatar for Airshow
0
396
Member Avatar for nikita.

what is the use of [code]unix-stream("path/to/file");[/code] I can't seem to find it anywhere.

Member Avatar for L7Sqr
0
101
Member Avatar for nikita.

Hi , I want to run a shell script which is present in another user's id after switching it to that user in the same script. but it is not taking it. I m using the su command for that. [code] su - user1 -c "./${HOME}/script1.sh" [/code] it just says …

Member Avatar for nikita.
0
170
Member Avatar for efronefron

the problem is if you increase buff size and also change the buff size in a3_fgets_2 function call to more than 15, the program will run in an infinite loop, Can anybody tell me why? Thanks [CODE]#include<unistd.h> #include<string.h> char * a3_fgets ( char * str, int num, int fd ); …

Member Avatar for efronefron
0
252
Member Avatar for Efficience

I have written a code for checking vfork in unix. But I am getting the ambiguous behavious. When I am using exit(0) in child process , output is fine i.e; output :- Before fork I am a child My name is parent child PID=> 23133 kValue => 2 ] But …

Member Avatar for Efficience
0
282
Member Avatar for nikita.

I want to write a shell script to automate the ftp session, in that it should take the inputs like the server ip , username , password from a different file who path i'll pass. and also the validations that if the server path exits or not.

Member Avatar for nikita.
0
193
Member Avatar for nikita.

I have to run a shell script and store whatever is performed in it into a log file. the path can be altered for the log file. how can i do that ?

Member Avatar for nikita.
0
4K
Member Avatar for munitjsr2

consider a list of files in a particular directory(LIST A) 58623208 Sep 14 20:08 blbn_blfbe_drv 57904920 Sep 14 19:54 blbn_cycmn 55814208 Sep 14 06:02 clsa_Upd 38912000 Sep 14 19:12 cs_chgpp and in another directory (LIST B) 58623208 Sep 14 20:08 blbn_blfbe_drv 57904920 Sep 14 19:54 blbn_cycmn 55814208 Sep 14 06:02 …

Member Avatar for L7Sqr
0
210
Member Avatar for WolfShield

I have some program ideas that I would like to build for PC, Mac, and Linux/Unix. The process I have in mind is to write the core libraries in C++, then program each UI based on OS. Windows: C# Mac: Objective-C and Cocoa Linux/Unix: C++ and GNome/Gtk But, I only …

Member Avatar for mike_2000_17
0
209
Member Avatar for wolf29

I am having major issues with nfs, in that server-1 has to mount a file from server-2 before an application owned by another user can operate. The applications will appear to load without the mounted share but they will be just going through the motions and the application will not …

Member Avatar for wolf29
0
142
Member Avatar for Billy D

I have a console application I compiled with Xcode 4. I have an icon (Unix executable) for it on my desktop. Is it possible for me to click on that icon and run the program WITHOUT terminal opening?

Member Avatar for janejackson87
0
192
Member Avatar for Billy D

Hey everybody. I was wondering if this is possible, and if it is, why it isn't working. When you right-click an application (.app), there is an option for "Show Package Contents." If you select that option, it opens up a "Contents" folder. Inside that folder, there are multiple folders, but …

Member Avatar for jingda
0
188
Member Avatar for Rickay

I'm not really sure what the proper forum for this is. Basically, I have compiled a small program (written in C++) that I want to execute. It first creates an AppleScript, then runs it. But, when the program is run (it is a 'Unix executable file'), I want to to …

Member Avatar for Rickay
0
260
Member Avatar for alwaz on9

Hi all, I was asked to write a shell program in c in unix....basically what i would like to include are the use of dup2 to implement redirection ( < or >) and the use of dup2() and the pipe() system call to implement the '|' symbol on the command …

0
155
Member Avatar for Straocaste

Hello, I need help making my shell in c. The shell needs to ignore spaces, this means that you can put the spaces you want an the command needs to work, I already resolved that problem, the next problem is that if you put ; two commands need to be …

Member Avatar for rubberman
0
174
Member Avatar for Enzo85

Hello everyone I am new to this site. I have a university assignment in which I need to program a 2 player pacman game, using C and the Unix operating system. If more than 2 users have typed the command to run the program/s the users must wait in FIFO …

0
126
Member Avatar for sidlampard

This is an assignment question, I know i should do it myself, but believe me i have just learned this subject and couldn't find the answer. Please if someone could give me the answer, i would be greatfull. And please if you could hurry because I have to submit on …

Member Avatar for Potion
0
104
Member Avatar for virtue

Hi, I wanna traverse inside the file system by using threads and processes.My program has to assume the first parameter is either given as "-p" which offers a multi-process application or "-t" which runs in a multi-threaded way. The second parameter is the pathname of a file or directory. If …

1
142
Member Avatar for tuse

In a shell script, I want to 'spool' (record) the shell prompt & command typed alongwith its output into a file. eg: In the script, if I give a 'ls' command, the file should contain: [CODE] <<root@server ~>>$ ls a b c.txt <<root@server ~>>$ [/CODE] i.e. the command as if …

Member Avatar for shibblez
0
2K
Member Avatar for baldwindc

I am taking a data structures class and we are using the standard gcc compiler on a unix system. This is fine and I have no troubles using it, but I would like to begin using an IDE for my labs. I am trying Visual Studio 2010 Professional with my …

Member Avatar for baldwindc
0
237
Member Avatar for eman neercs

What I want to do is to take the previous day's logfile, strip out the search phrases and insert these into a mysql db. Currently using Deep Log Analyser to manually lift the search terms, but I's appreciate some pointers as to how the parsing could be done by a …

Member Avatar for nonshatter
0
137
Member Avatar for Tango2010

Hi All, I wonder if anyone could help? I have a large Java program which needs at various points to run UNIX commands. The only wayI have found to do this is below (although I would have liked the program to output all terminal commands into the same window (shell) …

Member Avatar for ~s.o.s~
0
494
Member Avatar for ana_1234

I have to: Run the grades program twice, so that it accepts the data in the files t1 and t2 as input for the two respective runs. I ran the grades program, it asked me to enter digits, I have the t1 and t2 files, how do I make the …

Member Avatar for sree_ec
0
157
Member Avatar for pikpik

Hi, As part of porting a (mostly C++) library[1] to a "new" operating system[2], I'm trying to link the library's semaphore class to the platform's semaphore implementation. The problem is that the library assumes that the semaphore implementation will be a modern POSIX one[3] but the operating system's semaphores are …

0
157
Member Avatar for hassancool

Hi Guys, I am planning to learn Linux.... I have heard from Many RHCE's that if you will learn Redhat then you will know every Linux Distribution.... Is it true??? My 2nd Question.... I want to practice the Command Line in Linux...You can say want to prepare for RHCT... So …

Member Avatar for hassancool
0
249

The End.