bsd x 48

1,293 Topics

Member Avatar for
Member Avatar for PhilEaton

Having trouble dual booting Windows and BSD? I was! I highly recommend using EasyBCD to add in an entry to the windows boot loader. I couldn't get the Windows bootloader to recognize bsd, but using this I could! I am not affiliated with the company, but it has done me …

0
158
Member Avatar for firdousahmad

Why virus only attacks to windows operating systems and not to Unix operating systems?

Member Avatar for JorgeM
0
122
Member Avatar for sandeepau

Hi, Can you please suggest me to how to execute .profile from perl script. I have following unix script steps & just wanted replicate them in perl script to make sure I'm executing .profile. . ~/.profile echo $SHELL

Member Avatar for chandrashekar
0
161
Member Avatar for Dewey1040

I've recently created a .dll project in Visual Studio using C++. I'm curious how Visual Studio is creating the ability to link the files. I got everything working properly but it seems I can get the project to work flawlessly regardless of where the .dll file is located. Once the …

Member Avatar for mike_2000_17
0
288
Member Avatar for fl415

here is the problem: Write a C/C++ program (call it string invert) that takes a string argument from the command line and outputs the string in reversed order. Here comes the twist: Each process can output at most one character. If you want to output more than a single character, …

Member Avatar for DeanMSands3
0
875
Member Avatar for Samyx

I need help writing a c program to run in Unix that uses pthread library to create a thread that computes the fibonacci numbers. I should provide a parameter to the thread indicating which fibonacci number to return and use pthread_join to wait and collect the returned value and lastly …

Member Avatar for DeanMSands3
0
3K
Member Avatar for keval007

Hi, I am new to Unix environment. Any one can explain how I can set CRON job to run PHP script. Thanks.

Member Avatar for rch1231
0
238
Member Avatar for addlebrains

Hi there. I've just written an extremely simple cross-platform wrapper for posix threads. I compiled it on unix and it compiles with no errors. The windows side... not so pretty. I'm using MinGW. gcc compiles fine but throws a couple of warnings at me (I'll explain in a bit.) g++ …

Member Avatar for ThoraxImpailor
0
264
Member Avatar for Ankit_Parmar

What is the difference between Binary Semaphore & Counting Semaphore? What will be situation to prefer one from both of them?

Member Avatar for Climber Ty
0
515
Member Avatar for OrangeTree

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 …

Member Avatar for OrangeTree
0
268
Member Avatar for DemiSheep

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 …

Member Avatar for Despairy
0
205
Member Avatar for MastAvalons

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 …

Member Avatar for MastAvalons
0
216
Member Avatar for crainna motesha
Member Avatar for asif49

Hi, on a linux machine, what command do I have to type to set up the netmask? And apparently I've heard there is a route command that also has to be input which is something else I don't know about. Can anyone tell me the commands and why it is …

Member Avatar for CimmerianX
0
151
Member Avatar for sammry

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 …

Member Avatar for vibhaJ
0
189
Member Avatar for mstashev

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 …

Member Avatar for mstashev
0
283
Member Avatar for sharath_137

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.....

Member Avatar for L7Sqr
0
65
Member Avatar for raju1234

Without root password how can we create user account with administrative priveleges?..

Member Avatar for LaxLoafer
0
156
Member Avatar for shean1488

Hi everybody! Help me please to figure out the comand that I need to use to find a file and open it at same time for example: root@serg-PORTEGE-Z835:~# locate bash_profile /usr/share/doc/adduser/examples/adduser.local.conf.examples/skel/dot.bash_profile and lets say I want to open this file, but I don't want to use cd and go all …

Member Avatar for rubberman
0
135
Member Avatar for Zssffssz

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 …

Member Avatar for Zssffssz
0
1K
Member Avatar for zingwing

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 …

Member Avatar for zingwing
0
302
Member Avatar for jbennet

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 …

Member Avatar for jbennet
0
261
Member Avatar for rusman

I have written a very simple bash script that runs on Solaris10. It runs a command and then sends me the output via mailx. I can run it at the command line (sudoed as root) and it runs perfectly fine. I then set it up to run from root's cron. …

Member Avatar for thines01
0
337
Member Avatar for rusman

I have written a very simple bash script that runs on Solaris10. It runs a command and then sends me the output via mailx. I can run it at the command line (sudoed as root) and it runs perfectly fine. I then set it up to run from cron. I …

Member Avatar for rusman
0
142
Member Avatar for shean1488

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 …

Member Avatar for JeoSaurus
0
290
Member Avatar for Vampiricx3

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 …

Member Avatar for DavidKroukamp
0
195
Member Avatar for koricha

can some body expaly me this command [CODE]sed -e 's/<[^>]*>//g' test > test.t [/CODE] thank you

Member Avatar for koricha
0
195
Member Avatar for jnewman3

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 …

Member Avatar for jnewman3
0
1K
Member Avatar for jinneebhat

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

Member Avatar for ejosiah
0
88
Member Avatar for jdm

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

Member Avatar for savoie
0
242
Member Avatar for CreativeCoding

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

Member Avatar for Pestilence
-2
194
Member Avatar for msrikanth

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 …

Member Avatar for histrungalot
0
7K
Member Avatar for Dec28

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 …

Member Avatar for histrungalot
0
273
Member Avatar for Zssffssz

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 …

Member Avatar for tom12
0
208
Member Avatar for Member #908245

I am going to assume that gcc is the compiler people are using on their *NIX. so for that, I know that [CODE]#if defined(__GNUC__) [/CODE] will work. SO... for Centos, Solaris, HPUX, AIX, Linux, BSD, FreeBSD, OpenSUSE, Fedora, redhat, what #if defined()'s do I use to detect these OS's?

Member Avatar for L7Sqr
0
130
Member Avatar for muthu1802

Can Anyone explain about how to establish a connection to a same server with different private/rsa/identity using identity file.

Member Avatar for muthu1802
0
231
Member Avatar for squinx22

hi! What is makefile? How does it work? Is it done in the terminal? I am using Unix OS

Member Avatar for palashjhabak
0
175
Member Avatar for baruchM

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

Member Avatar for vaultdweller123
0
197
Member Avatar for Icostyle

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

Member Avatar for zachmandude32
0
253
Member Avatar for ajai.solinfi

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

Member Avatar for ajai.solinfi
0
289
Member Avatar for Zssffssz

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 …

Member Avatar for WaltP
0
285
Member Avatar for degroundshaker

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 …

Member Avatar for pzuurveen
0
350
Member Avatar for DJSAN10

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

Member Avatar for jackbauer24
2
124
Member Avatar for mrprassad

[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 ?

Member Avatar for Moschops
0
219
Member Avatar for gj_1311

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

0
35
Member Avatar for sandeepau

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 …

Member Avatar for voidyman
0
458
Member Avatar for Icostyle

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 …

Member Avatar for L7Sqr
0
122
Member Avatar for sofia85

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 …

Member Avatar for TrustyTony
0
107
Member Avatar for coding101

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 …

Member Avatar for savoie
0
173
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
211

The End.