1,446 Topics

Member Avatar for
Member Avatar for scomrade

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 …

Member Avatar for CimmerianX
0
152
Member Avatar for MatthewYeend

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 …

Member Avatar for been.coerced
0
324
Member Avatar for Miroslav Mizner

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 …

Member Avatar for mizoslav
0
878
Member Avatar for joselalupa

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 …

0
216
Member Avatar for dinamit3

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 …

Member Avatar for L7Sqr
0
294
Member Avatar for amt_muk

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

Member Avatar for Ancient Dragon
0
119
Member Avatar for Opsive

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

Member Avatar for Gribouillis
0
913
Member Avatar for shaneetra.graham

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

Member Avatar for Ancient Dragon
0
174
Member Avatar for Gribouillis

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 …

Member Avatar for Gribouillis
0
345
Member Avatar for psweet
Member Avatar for Ancient Dragon

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.

Member Avatar for Ancient Dragon
0
106
Member Avatar for RikTelner

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 …

Member Avatar for RikTelner
0
217
Member Avatar for SuperKingGT

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 …

Member Avatar for SuperKingGT
0
2K
Member Avatar for pravej

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 …

Member Avatar for iamthwee
0
7K
Member Avatar for PriteshP23

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

Member Avatar for PriteshP23
0
713
Member Avatar for Jokatech

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 …

Member Avatar for richieking
0
296
Member Avatar for timetraveller1992

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 …

Member Avatar for Lsmjudoka
0
260
Member Avatar for D33wakar
0
349
Member Avatar for D33wakar

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.

0
390
Member Avatar for manohar1111

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.

Member Avatar for Gribouillis
0
189
Member Avatar for alaa sam

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

Member Avatar for tsttst
0
1K
Member Avatar for João_5

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

Member Avatar for João_5
0
309
Member Avatar for smdjilani

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?

Member Avatar for AARTI SHRIVAS
0
110
Member Avatar for AlWreikat

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 ?

Member Avatar for rubberman
0
535
Member Avatar for krystosan

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 …

Member Avatar for krystosan
0
563
Member Avatar for Goldfinch

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 …

Member Avatar for Goldfinch
0
174
Member Avatar for MasterHacker110

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 …

Member Avatar for sepp2k
0
259
Member Avatar for smart.brute.force

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.

Member Avatar for djbobyd
0
113
Member Avatar for ashwil

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 …

Member Avatar for masijade
0
204
Member Avatar for broj1

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 …

Member Avatar for stultuske
1
906
Member Avatar for darkofpain

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 …

Member Avatar for darkofpain
0
262
Member Avatar for singularity~

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

0
261
Member Avatar for f14dtom

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?

Member Avatar for Vasvi
3
745
Member Avatar for harde_1

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 …

Member Avatar for deceptikon
0
309
Member Avatar for harde_1

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); …

Member Avatar for harde_1
0
446
Member Avatar for mathura.shreedher
Member Avatar for Raphael_1

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 …

Member Avatar for rubberman
0
114
Member Avatar for asrsmunna

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`

Member Avatar for sepp2k
0
332
Member Avatar for Linuks
Member Avatar for vasvigupt
0
269
Member Avatar for adishardis

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

Member Avatar for adishardis
0
113
Member Avatar for ing

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

Member Avatar for rubberman
0
453
Member Avatar for sathish_nadu

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')

Member Avatar for pzuurveen
0
145
Member Avatar for Tinnin

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

Member Avatar for Tinnin
0
3K
Member Avatar for terry.powling

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 …

Member Avatar for CCHIndiaStore
0
112
Member Avatar for JRSofty

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 …

Member Avatar for LastMitch
1
335
Member Avatar for sudipta.mml

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 …

Member Avatar for rubberman
0
308
Member Avatar for neha.jubair
Member Avatar for TheOneTopCat

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 …

Member Avatar for GeekPlease
0
563
Member Avatar for Tinnin

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 …

Member Avatar for rubberman
0
174
Member Avatar for fatalaccidents

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 …

Member Avatar for biry2009
0
598

The End.