1,446 Topics
![]() | |
I am unable to write a text file from a windows PC to a folder in Unix. I am told I have no permission. I can see the unix server from network and browse to the folder but I cannot write to it. The permissions of the folder on the … | |
Basically, I need to make a database viewing page and an input pag... The input page must take the First name, Surname, and the age. This should be sent to a script on your server via either a GET or POST, and inserts them into a MySQL database table. This … | |
Hi everybody! These days I've been solving the task of sending the bunch of files specified by unix filespec convention (all metacharacters allowed) to the remote host using ftp. I'm thinking of such concept/design, where the main bash script executes the following subtasks: (1) Expansion of command line arguments to … | |
i am trying to use xerces in ubuntu 13.10, it is instaled, i can see the files in usr folder but i have no luck including it in eclipse cdt, i've found this thread "[Click Here](http://www.daniweb.com/hardware-and-software/linux-and-unix/threads/409769/ubuntu-11.10-xerces-c)" but it is dead and the answer is not clear for me, could anyone … | |
I have this string " țara " which contains a character ț which is stored on 2 bytes. When i do in linux : hexdump -C file that contains the string it shows : 00000000 c8 9b 61 72 61 |..ara| 00000005 It is normaly to view c8 and 9b … | |
Hi friends, In Windows if we create an exe with MSVC6.0 a corresponding ".lib" file is generated. This file can be used for accessing (linking) the classes defined within that exe from some outside libraries (dll). Now in unix platform (ie, Red Hat Linux), how can we use that technique. … | |
Hello, I am writing a little script that needs to get the timezone from an rss feed, and I am using [URL="http://www.feedparser.org/"]Feed Parser[/URL] to parse the rss feeds. The way that I am converting the date into Unix Epoch time is: [CODE] feedDate = feed['feed'].get('updated_parsed') or feed.entries[0].get('updated_parsed') feedDate = mktime(datetime(*feedDate[0:6]).timetuple())[/CODE] … | |
I was having a little trouble with parsing my command upon input, I'm new to C so any help would be greatful! Here is what i have so far i'm trying to make a simple unix shell char*token; while(1){ //prints users prompt printf("\n%s@myshell:%s>", username,curDirect); //gets string from command line fgets(buffer, … | |
My old hard drive with Linux Mint 15 Olivia refused to boot yesterday: kernel panic etc. I tried to repair the file system and now some shared libraries are missing. On this computer, I have a brand new second hard drive with Kubuntu 13.10 freshly installed. From this OS, I can … | |
How did the link get into [this post](http://www.daniweb.com/software-development/shell-scripting/threads/474195/file-in-unix#post2070691)? The op said he/she didn't put it there. | |
2^64 / (1024^2) = 17.592.186.044.416MB = 16 exabytes 2^32 / (1024^2) = 4.096MB = 4 gigabytes 2^16 / (1024^2) = 0,0625MB = 64 kilobytes 2^8 / (1024^2) = 0,000244140625MB = 0,25 kilobytes = 256 bytes **How the heck you guys managed to do anything on "computers" which had maximum of … | |
Hey guys! I'm in the process of writing a bootloader and I'm having trouble printing out memory information, using 16 bit nasm I know INT 12h stores the low memory information in AX but I can't seem to print it out correctly. I'm currently trying to print it by converting … | |
Hi, Is there any way in C++ to select and read the last modified file from a unix directory? Let say the o/p of the ls -t is : abc.txt myfile.txt .... .... last_file.txt I want to select this last file ( can be of any name) and read the … ![]() | |
Hello, I have one "**tar.Z**" file. Objective is to unzip it by shell script and check the date. * archive: filename_20140103_1540.tar.Z #!/bin/bash cd $REP_DATAS/path u=$(date +%u) if [ ${u} -eq 1 ] ; then dateQ=`date --date='-3 day' +'%Y%m%d_%H%m'` else dateQ=`date --date='-1 day' +'%Y%m%d_%H%m'` fi tar xvf filename_"dateQ".tar.Z > error: > … | |
A program which has the main process as Director process, which reads a file containing marks of all quizzes of all sections and creates x number of Manager processes. Each Manager process will take care of solving for a section. Each manager process will create y number of worker process … | |
I am trying to write a multiline string into a text file but it does not appear as multi-line text. Here's my code $hostname = "localhost"; $username = "root"; $password = "sample"; $dbname = "code"; $code = <<< THECODE ; This is the main configuration file for your web app … | |
Similar to echoserver, but this one handles multiple clients by forking the process. | |
This is a simple echo server that I've written while learning sockets programming. Compile the server and run it. You can connect to it using telnet like this: telnet localhost 1337 Disconnect the client by typing "/quit" without quotes. | |
hello sir, I have doubt that how to redirect the ouput text of a command (while working on unix cmd prompt) to a file using python.please help me with sample code. | |
hey everyone I was wondering if there is any tool that I can use to draw a Wi-FI coverage map in linux ?? Thanks in advance | |
Ok, new question... I need to get data from one mysql row, set it as $ad The following code will convert it to readable date format. <?php function adConvert ($ad) { $seconds_ad = $ad / (10000000); //86400 -- seconds in 1 day $unix = ((1970-1601) * 365 - 3 + … | |
I have unix ubantu softwere.when I run any php filE in my firefox i got only a pop up window where to save the file ? what should i do? | |
I want to write a C code that reads billions of integers from a text file. Each integer is of length 10 digits (e.g. -2311872000). then I build a linked list to store these integers.how could I do that ? | |
I hav amde this alias : test='python -m nose.core --tests $1 -s --with-coverage' this runs but gives an OS Error saying: $ test test_filterList.py nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module ....E ====================================================================== ERROR: Failure: OSError (No such file /Users/sanjeevkumar/Development/python/-bash) ---------------------------------------------------------------------- Traceback (most recent call last): File … | |
Hi, I'm trying to build a prototype or model of a program and that program requires the ability to store and retrieve data and operate locally (no network connection is needed at this time). I've discovered the javax.sql package but that seems to only connect to a database. I need … | |
I program mainly in C++ but recently took up Java for its advantages. I heard about the mono project and that C# is now cross platform but that the GUI of C# is not. I like Java but I also like C#, Java has some anoying restrictions sometimes (like no … | |
is there anyone interested in the idea of making a new operating system in the (Unix Like operating systems) category, if you are interested we can start brainstorming about how achieve that goal. | |
Hi, I need to filter and remove files which are older than a month from a Unix folder. I got the below command from Daniweb. find /path/to/directory -type f -mtime +31 -exec ls -ltr {} \; Can I use this command in ksh script? Does the file name need to … | |
Hi I have just replied on a post that was posted 43 years ago. My reply was also 43 years ago. I had that feeling that time just flies lately but this might be a little too fast. Or is it just some issue with unix time. This is the … | |
The simplest way is now friends with this command when running this sample compiled #include <stdio.h> #include "fcgi_stdio.h" int main(int argc, char *argv[]) { while(FCGI_Accept() >= 0) { printf("Content-Type: text/html; charset=UTF-8"); printf("<center><br><br>Hello World Wide Web</center>"); } return 0; } **operation type:** cgi-fcgi -start -connect localhost:9000 ./hello After you run this … | |
How can I open an application on a specific workspace using the terminal in UNIX? **** I cannot use any external addons like Devil's Pie **** | |
Does anyone like to use Linux over the Microsoft XP or System 7/8. I have used at least 4 virtual Linux's and like the fact that you do not have to run with Virus or Spam software. Unix based system? | |
Im trying to add Total function and isMono functions to this code. Did total already Need help with function ismono which returns whether a tree is mono (all the elements are unique aka no element appears more than one time) or not. Please this is the original program #ifndef T_H … | |
Hi, I need a function that will take a tree as argument and return the number of ints that were typed and a correct call. would it just be preorder? like below. Please. Thanks #include "t.h" void preorder(tnode * t){ if (t == NULL) return; cout << t->info <<endl; preorder(t->left); … | |
How to call webpage from unix script? | |
I am a Unix newbie trying to install Sqldeveloper on Ubuntu. I installed jave-7-openjdk. I ran the deb file and created the .sqldeveloper/ directory in my home folder. Next, I am supposed to run Sqldeveloper once from my termina. But when I sudo /opt/sqldeveloper/sqldeveloper.sh, it says command not found. Can … | |
Hi Can anyone explain me the following command. This may be a minor one, but, please do explain in detail. CHKTRANS=`echo ${0} | grep '/transforms/' | wc -l` | |
Do have for Ubuntu any software for Windows Phone Lumia 720? | |
Two questions, How do I create a unix timestamp from a date variable derived like this: `var myDate = $(this).data('date');` the format is like this: 2013-01-01 and how do i then create a new unix timestamp for 90 days later than myDate? Thanks | |
Hi. I have a noobish UNIX question. I have a password-protected section of my website for testing (named 'sandbox') and I'm trying to write output to a plain text file in that directory. But I'm getting the following error due to permissions settings. `Warning: file_put_contents(testdb.txt) [function.file-put-contents]: failed to open stream: … | |
I'm trying to set a query that will pull all clients whose birthday is today. I'm using phpmyadmin localhost via Unix socket, birthday is set as DATE. All I need returned is the firstname (emp.emp_firstname asfirst name) , lastname (emp.emp_lastname aslast name) and date of birth (emp_birthday as 'dob') | |
I know this has been asked on almost every forum but I've been at this for two evenings now and I'm stumped. PHP 5.4.6-1ubuntu1.2 Server version: 5.5.31-0ubuntu0.12.10.1 (Ubuntu) Initially I had no access to mysql functions either but that hurdle has been overcome. I've placed the extension modules (.so files) … | |
Hello, I am a 50 year old engineer,ex-army, formerly from Wales, but moved to Kent some 26 years ago ( I hate sheep! ). I have over 10 years experience repairing all manner of electronic equipment. My personal preference is the Linux operating system, I use Mandriva 2012 KDE4, after … | |
This class allows for the handling of normal and serialized cookies as well as switching between these types of cookies. Cookie Functions: Write Cookies Read Cookies Delete Cookies Use of this class is fairly simple. Step 1: Include the class source in your php project using the require or include … ![]() | |
Hi all I want to login a machine remotely and doing some operation on the remote machine and then exit the remote machine by a unix shell script. I can login these two machines without passward. How can I do that? For example, my script is on machine1. that script … | |
I need to populate a listbox from a textfile that contains data from a workshop class. The class contains the definitioin of the properties (FIELDS) of the workshop class. The text file looks like this. 0\3\800\Programming in Java 0\3\800\Programming in Visual Basic 0\3\800\Programming in C# 0\5\1500\Advanced Java 0\5\1500\Advanced Visual Basic … | |
I've been using Linux for about half a year now but I'm definitely not taking full advantage of it as my knowledge regarding it is weak. I've seen some recommendations for the book "Unix Programming Environment by PIKE ROB KERNIGHAN BRIAN W. (1984)" but I can't help wondering if such … | |
Hey guys, I wasn't exactly sure where to put this post, but this was my best guess: I'm on a HPC and wanted to use vim as a python IDE and was trying to install my own version of vim (7.3) with a python interpreter. I use configure to enable … |
The End.