1,293 Topics
How can i get result between two date from database where date is in unix timestamp.How can i use WHERE clause to get result.I required in a project.
Hi everyone . I'm studying network engineering and security , its my forth year . I have taken a network programming cousre , and I will take Unix system programming course soon . I love programming , and I love networks . I have taken network course , network protocols …
Task Your task is to write a file archive utility similar to that of the Unix tar program. This program will be a command line program (i.e. there will be no graphical user interface). The purpose of this file archive utility is to allow users and system administrators alike to …
Hi, I am trying to create a way where Javascript can do a loop between two Unix Timestamps to print out the dates and some html. I have created a way for this method to work in PHP. However, I need this same method to work in Javascript. Working PHP: …
**Rev. kanan ratan sraman sri pragnananda pirivena, 80,nagaha watta road, maharagama Sri Lanka**
So Im using our university servers through an ssh connection. I have a bunch of files in a directory which I would like to run through a perl script. So I thought this simple script I concocted should do the trick. I have used similar script on my home computer …
Hi,I am using following code for FTP in shell script file and it is working.Now I want to migrate from FTP to SFTP.What code changes/steps I have to perform for SFTP ? ftp -in <<FIN open $SAP_UP_SERVER user $SAP_UP_USER $SAP_UP_PASSWORD asc put $PM00_OUTPUTS_DIRECTORY/$SAP_UP_FILE_CSV /$SAP_UP_FILE_CSV put $PM00_OUTPUTS_DIRECTORY/$SAP_UP_FILE_CTL /$SAP_UP_FILE_CTL prompt ... End …
OK so I am basically brand new to shell scripts and new to Unix in general. I have a server that has two profiles, one is a shared account for a few friends and I and the other is one that I use to run video game servers off of. …
Hi everyone, When I type http://clontarf.girlsacademy.com.au/News-2012-Academy-Awards-53.html into my web browser I get the following error message: "Not Found The requested URL /News-2012-Academy-Awards-53.html was not found on this server. Apache/2.2.22 (Unix) mod_fastcgi/2.4.6 mod_ssl/2.2.22 OpenSSL/0.9.8r DAV/2 PHP/5.3.13 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.2 Server at clontarf.girlsacademy.com.au Port 80." How can I fix this? Cheers …
This is the code do look at it. I just want change it in switch statement. will stuck in it. it is unix code. commands[0] = (char *)"ls"; params[0] = (char*)0; commands[1] = (char *)"who"; params[1] = (char*)0; commands[2] = (char *)"date"; params[2] = (char*)"+%d/%m/%y"; commands[3] = (char *)"ps"; params[3] …
Okay I am trying to write a program where a parent process creates three child processes. Also waits for each of them to finish. Here is my code: [code] #include <stdio.h> #include <unistd.h> main() { int i; // create 3 child processes for (i = 0; i < 3; i++) …
Hey! So I am new at programming, Pretty much all of my knowledge is Arduino, Processing, and Lua. I was wondering if anyone had any advice about which direction I should go from here. I would want somthing that is Compatible with Windows, Mac, and Linux (possibly BSD). Thanks in …
hi all i want to write unix shell script but my operating system is windows 7 so do you have or know a program that provide unix environment on windows??? thanks in advance
Hi, i am relatively new to programming. i am trying to use an open source library found by google search. the readme file tells to write make on commandline, as a result i got an exe file sample, but now i am trying to chk the output and the usage …
Hi all I am having problems recieving my emails through free bsd . what are the general commands to allow mails to be released and come through?? cheers Cougar367
i write alot of program in C. and it really helpful if i write them in unix or linux. so is there a way for me to use unix or linux without downloading onto my computer? may be i can download unix, linux on CD or some program that let …
Hello guys, I am working as a C C++ UNIX software programmer , and looking for freelancer projects. could you please let me know how can i get the project?
Which command is used to copy all files having the string chap and any two characters after that to the progs directory?
Hello, I was trying to combine some commands but having a little trouble. In a single command I want to call the script dvdcoll2 and accept input from dvdcoll1. Then I want to put stdout into dvdcoll3, and stderr into dvderror. How do I string together four commands in a …
Q-1 Write a shell script in Unix that lists files from your current working directory · By modification time when called with lm · By access time when called with la. By default, the script should show the listing of all the files in the current directory. Q-2 Write a …
I keep receiving these error messages: Applicant.cpp:25:6: error: prototype for âvoid Applicant::setDeposit(char)â does not match any in class âApplicantâ Applicant.h:12:7: error: candidate is: void Applicant::setDeposit(bool) Applicant.cpp:29:6: error: prototype for âchar Applicant::getDeposit()â does not match any in class âApplicantâ Applicant.h:13:7: error: candidate is: bool Applicant::getDeposit() Applicant.cpp:71:5: error: prototype for âint Applicant::addPoints(int)â …
how can you use the **HISTORY** command in **UNIX** or is there an **Alternative command** to view your previous unix commands.
Hello there. I am kind of confused. In PHP I substract two unix timestamps from each other. The first: mktime(0, 0, 0, 10, 22, 2012) The second: mktime(24, 0, 0, 10, 28, 2012) For as far as I know the time difference between these two timestamps is exactly 7 days. …
Hello, I am writing a program that reads in data from a text file and puts it into a linked list. Certain variables are read in only if the "officeHeld" number is a particular number, otherwise the variable is set to 0. When I run this through Visual Studio, I …
Hello, I am stuck with tryting to upgrade PEAR fri 1.7.2 to newest version. I want to install PHP unit and it does not like 1.7.2 version of pear. I managed to get till there: C:\Users\Darius>pear upgrade pear WARNING: channel "pear.php.net" has updated its protocols, use "channel-update p ear.php.net" to …
I've been working on this code for 2 days now and i finally think i got the while loop running correctly but now i cant seem to print the child process id's. The code starts with the parent process forking 3 child processes. Then the parent must wait till a …
I'm inspecting a binary file. I have a rough idea of what is inside but there are some characters present which I am not sure how they got there. My question is highlighted in bold below. Thanks. To speed things up the first 28 bytes are reserved for the date …
<ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> <ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> <ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> <ns:Address> <ns:StreetNumber>XXXXX</ns:StreetNumber> <ns:CityName>XXXXXX</ns:CityName> <ns:StateProvNamePA</ns:StateProvName> <ns:ZIP>XXXX</ns:ZIP> <ns:AddressID> <ns:ID SystemCode="CODE">10</ns:ID> </ns:AddressID> </ns:Address> I am tryting to Spilt a File into number of …
Hello; While this script working, in case of not to connect a node ("BADYK01","BAGRK01", "BAHLK01", "BAHLK02", "BAHLK03") , it stops. I want it to be continue even if it doesnt connect a node. I mean if it couldnt connect to BAGRK01, I want it to be continue and connect the …
Hello. The problem is in [this post](http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/434969/php-and-apache#post1868055). First block of code, line 5 and line 9. I see a difference between normal view and raw view (on double click). In normal view line 5 appears like: <Directory /> in raw: <Directory ></Directory> and the same happens on line 9. These …
Hey all, Wanted to ask a question about the guest profile on Mountain Lion. I have always been a little insecure about changing and adding new feats to the terminal, so I'm trying to figure out a way that I can be *more* secure. I have recently edited both bash …
not sure where to post this but the problem is that i cant seem to compiler a program in unix. i am using unix: SunOS unix2.its.albany.edu 5-10 Generic_142900-06 sun4u sparc SUNW, sun-Fire-V440 1-create file emacs hello.cl(l = lower case L) 2.write program in "COOL" class Main { i : IO …
not sure where to post this but the problem is that i cant seem to compiler a program in unix. i am using unix: SunOS unix2.its.albany.edu 5-10 Generic_142900-06 sun4u sparc SUNW, sun-Fire-V440 1-create file emacs hello.cl(l = lower case L) 2.write program in "COOL" class Main { i : IO …
You can tell a lot about a company by the way they treat the employees lowest on its pay scale. Pay cuts and, yes, even layoffs are inevitable in today's economic climate. The decisions are painful, but they're often necessary and unavoidable. They aren't, however, a license to be callous …
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! I would just like to know is there a way you can overwrite the main.c file in the kernel folder(dir /usr/src/kernel/main.c) in MINIX 3. I want to change some code in the file(I know the risks involved) but the problem is I can't save it. I've tried logging in …
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..
Hello! how can i view the source code of my distro? i mean, do we need that if we were to create a new system call? btw, i'm using centos 5.6 thank you in advance
Hello All, I have shell script which runs on unix box but recently we moved to windows box. I am completely zero in VB script I need you guys help to convert the below script to VB Thanks in advance for the help. CheckQDepth() { arch_log_file=`ls $arch_dir |grep $FNPARAM | …
I want to encapsulate a FTP user to putside his home directory like i9f its homedir is /home/ftp/ash, then I want to encapsulate him in /home/ftp How to do this please help me its urgent...
I have some strange problem which i started facing from yesterday. i have used GDB many times on my system , but yesterday when i started running GDB , my dubugger is enterings the library functions code part also which is very irritating for me. I mean if the program …
Spiltter function split the sample.c program into 3 parts sample.dat.1 sample.dat.2 sample.dat.3 if its memory size is 300 and splited file wil hav 100 respectively . . And join function is opposite of it. . Its in unix example split -c <size> filename for join join file
/root/bin/go-lfs I need to add teh above to PATH. If I simply write "export PATH="$PATH:~/bin/go-lfs" will it cause a problem? I'M assuming that this would remove enerything already in PATH and that might cause problems for the duration of my shell. If so, how could I added it without overwritting …
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/glibc.html Above is a list of commands from the LFS project. I'M building a script for this page I want to be sure I'M not fraking this up. Please pay special attention to the following: sed & unset - at the top case & esac and the threee cat & …
hi all all the deps were met,and autotools & ./configure run smooth,but make fails with the following error,tried with gcc2 & gcc4 environement,the same error, i hope to find some help here. here it is: In file included from xine.c:33:0: /boot/develop/headers/bsd/string.h:16:7: error: expected declaration specifiers or '...' before '(' token …
Hello, Does anyone know how to connect to a ms sql server from a unix platform Below is the code i found. I've setup the slq server and allowed it to accept remote connection. Port 1433 is open for connection and firewall is configered to allow remote connection. The host …
Portmap failure & portmap: unrecognized service while entering the command service portmap start
The End.