1,446 Topics
![]() | |
i searched for similar threads but couldnt find any. i write python scripts ..but i want to store them in someother folder eg /Desktop/... the scripts get executed from the unix terminal..however the python intepreter(initialised by typing python in terminal window )is not able to find the files. i changed … | |
I'm attempting to port a header file for a program that was designed for a Unix environment. i'm'; aware of the type defined variables like s16, u8 and such, but is their anything else i need to know about Unix C? not to familiar with it. thanks. sample portion of … | |
Hi Guys, I'm new to python - how to execute dos2unix from python - subprocess.popen with shell = False ? >>> cmd = subprocess.Popen(["dos2unix","./FEED1/bin/*"], stdout=subprocess.PIPE) dos2unix: converting file ./FEED1/bin/* to UNIX format ... >>> dos2unix: problems converting file ./FEED1/bin/* All help appreciated. | |
In my program, I used a vector to store the file. The file contains the data (see below). Do I need to create two vectors to store the data below as integers and strings? Or is there a shorter way to do this, and just allow the user to enter … | |
How are devices represented in UNIX? | |
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 … | |
Hey Guys, Ive got a MyBB forum and im looking at making a plugin to see what day had the most posts. In theory ive worked out how to do it, but I cant put it down in code. In the MyBB stats table (mybb_stats), I have a dateline (unix … | |
I am just starting to use Visual Studio C++. Before I was working with UNIX (years ago). It looks like there are many things that I need to know. I copied a program from CPlusPlus.com and tried to compile it as a CLR console application. This is as far as … | |
I'm just going to post something that i posted in another forum, as I already typed out what's going on in my life and do not want to type it out again. ------------------------------- i've been thinking about my life these last 4-5 years. originally started with wanting to do a … | |
Hi, First post here. I need to scan a file (NC milling output) with, potentially, tens of thousands of lines of text, looking for keywords. Every time I find a keyword, say, a tool change command, I want to print out twenty lines - the ten lines above this line, … | |
I'm doing a program that is supposed to reverse a string entered my the user using a recursive function, I almost have it solved except for one little elusive bug that I can not understand. [CODE] //****************************************************************************** //Programer: Kyle Willett //Course: CS-1513 //Program: 3 exercise 7 page 933. //Purpose: Reverse … | |
Hi there, I'm using php to try and take two separate arrays ($colors and $message), write them to a single multidimensional array ($endline), and then write the resulting md array into a csv. This works fine on my localhost, but for some reason it doesn't work through my web host. … | |
I want to get unix time in my program, google just brought up how to get time on a unix system (I'm on a dos/windows system). Is there an easy (can fit in less than 20 lines of non-system dependent functions and without any API or WIN32 [unless simple] functions) … | |
hello every one I have a problem that drove me crazy last couple days I know I have to use loop structures but I can't figure out how to put the right pieces together. I'm not asking for a complete answer because I want to learn so please help me … | |
Programming in PHP is fun and easy. It is a very powerful scripting language that takes simple HTML and turns it into a fully-interactive experience for the web user. Let's get started! Note: These tutorials assume that you have a working web server that's capable of displaying PHP code and … | |
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 … | |
[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 … | |
This is a program to extract/compile car NAV .KWI extensions. Unfortunately, I do not know anything about Python though I will love to learn some time very soon. Could you help me compile this into an executable file for windows 7? Will be reatly appreciated. [CODE]#!/usr/bin/env python # # kiwi … | |
what is the use of [code]unix-stream("path/to/file");[/code] I can't seem to find it anywhere. | |
mY QUERY IS RELATED TO.. How can i set coloumn width in unix... Like for ex. i am having a file, whose content is like ------------------------------ aba bba baba abba baba baaa addd ffff fffff ----------------------------------- i want it to be like ----------------------------------- aba bba baba abba baba baaa addd … | |
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 … | |
Hi friends, help me out Generally If the call to fork() is executed successfully Unix will create identical copies address spaces and the execution starts from the next statement of the fork() So, in such case output of the following prog must be #include<stdio.h> { printf("\nwelcome to"); fork(); printf("\nDaniWeb Discussion"); … | |
So I have been trying to implement piping in my own shell program so that I can actually understand what UNIX is doing. I'm very very close at the moment, but for some reason my program is going into an infinite loop when I pipe. I'm pretty sure my problem … | |
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 ); … | |
WHAT in Heaven's name is a "T_STRING?" Nowhere do I see a definition of T_STRING, or why it is called T_something. From what I've been able to piece together, it might be an unquoted string. I have a [CODE]Parse error: syntax error, unexpected T_STRING in /home/xxxxxxxx/public_html/include/mmeetingDate.php on line 10[/CODE] Since … | |
Hello all, I'll hopefully be attending a cognitive neuroscience PhD program next fall and I'd like to learn some programming beforehand (having programming skills helps for lots of neuroimaging labs). Labs I've worked in used UNIX, MATLAB, and E-Prime (visual basic) and I'd really like to improve my knowledge before … | |
Good morning folks...I have a pseudo concept question. I have a trio of unix text files that I need to load into an Access database, and then do a comparison for matches (knowing one field will never match). My original idea was to create a VB application to parse the … | |
Hi, I don't understand how to write unix shell commands in python. I have this txt file were I want to delete duplicates. It looks something like this: RTGR.txt FRTO.txt RTGR.txt SDOP.txt QWJL.txt SDOP.txt FRTO.txt FRTO.txt ...etcetc... I think I'm suppose to import os and then I want to use … | |
Hi, I have some problems regarding the use of SSH(and also being a newbie in the SSH world). I have an application that uses SSH but when I want to use public key authentication. The server is a Win2003 server with F-Secure SSH server 5.3. When trying to log in … | |
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 … | |
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. | |
i need to create a unix timestamp in milliseconds like 1319031463499 to post to an web service. tried all sorts and cant get it. i have googled and keep getting strange years? | |
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 ? | |
[url]https://plus.google.com/u/2/101960720994009339267/posts/ENuEDDYfvKP?hl=en[/url] [url]http://en.wikipedia.org/wiki/Dennis_Ritchie[/url] It is indeed a sad day when one of the true pioneers of the modern technological world passes away. C and Unix are such huge corner stones of everything around us (like the ability for me to write this, and you to read this), and have inspired so … | |
Hey everyone, I'm just wondering if there is a way to get around this problem. I'm running SQLplus on UNIX server and SSHing into the server. Whenever I query Oracle DB, a list of results/bunch of tables comes up but I can not scroll up to the top of tables..... … | |
Dennis Ritchie died at age 70. Great loss the creator of C and co-inventor of Unix.Few people can truly say they changed the world. And Dennis certainly is one of the few. RIP Dennis, but also thanks for making the world in which we live in today! Thank you Dennis … ![]() | |
Is it possible to trigger an informatica job in JSP/Servlets? For eg. in unix we use pmcmd command to perform this task. Is it possible to run informatica jobs in JSP/Servlets? | |
I'm trying to write the code for the Game of Life program, using arrays and for loops. I based most of my code on what my teacher did in class and modified it to fit the requirements of my assignment. I've hit a wall, though. When I execute the program, … | |
Hi all, I am looking for an assembler compiler. This is what I need for, Language Resources XDS-68 Assembler version 3.0 with source files extensions are .MOT .MAC .MAR This source files actually have compiled on VAX running VMS on Motorola M68000 chip. How can we complile multi assembly files … | |
Hello, I've created something, its quite large, however I decided to write it without using oop, now I believe I see why I should just use oop. Okay, so the problem is with my bool values specifically: [CODE]button_pickup2 = false; button_pickup1 = true;[/CODE] For some reason when the ReflexAgent function … | |
After MANY hours searching online documentation, i still cannot find some simple examples of using the subprocess module to execute commands in the windows console and read back in the output from said command(everything is for unix). So for example, if i wanted to do something like use 7z.exe to … | |
I need to write a program transfer huge amount of files(60 GB) from my application server running on hp-unix to a remote PC . I haven't worked in hp-unix before. 1.Is it possible to run a sshd server using some shell command in hp unix and connect to the sshd … | |
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 … | |
Hello Friends I wanna to know about ..What is the diff b/w Linux and unix | |
Hi, I am new to Unix/Linux... I have a TCSH shell script (on AIX4) in which, at a certain point, I want the user to be able to pass commands to the TCSH interpreter. What I do is I create the illusion that the user is at his usuall shell … | |
For an assignment, I am writing a program in c++ that prompts the user for the day of the month, the weekday (numerically), the month, and the year. Then, based on that, I've got to have it output a calendar that is similar to the Unix 'cal' command. I've got … | |
Does Windows 7 “play well” with other operating systems? In other words, are computers running Windows 7 easy to integrate into a network (with file sharing, centralized security control, centralized printing) with other operating systems like Mac OSX and Unix? What features of Windows 7 make network integration difficult or … | |
Hello ! As I wrote in the title. I'm looking for a Java command wchich is simmilar to ' tr -s" " ' in UNIX. tr -s"[sequence]" : Replace each input sequence of a repeated character that is listed in SET1 with a single occurrence of that character. thanks for … | |
I am very new to Dreamweaver and Horizontal Spry Drop down Menu Bar and I am having trouble getting them to work. The browser displays the background gif for the menu items but I cant get the text to display. And the hover/drop down menu doesn't work. I have no … | |
Is there anyway to run a Java program through C/C++? (i.e.) When I run the C Program, the program must start and it must inturn run a java program and display its output... Im not talking about using Native interfaces and all. Not code interoperability. Just run the java class … |
The End.