unix

Unix - Problems with Game Speed After Transfer

I created a Java game application in Eclipse yesterday. I transferred the files over to my school Unix account with Filezilla. Today, I'm in the school lab testing the game inside my unix account. Here's the problem: everything ran fast and fine when I was on my laptop and in Eclipse. Now: 1) The frame rate is about 1 per second. Even ...

"Ad-hoc webserver" for static files on UNIX/MacOSX?

Is there such a thing as a tiny little webserver that I can invoke from the command line that just fetches files from the local filesystem and serves them via HTTP on specific port? I'd like to be able to do something like this: $ cd ~/Sites/mysite $ serve . 10.0.1.1 8080 This should fire up a webserver that listens on 10.0.1.1:8080 ...

Using getopt in unix shell

I have to use a Unix script to pass arguments: ./Script.sh -c "abc" -d "def" -k "abc -d -c" where the argument for: -c = "abc" -d = "def" -k = "abc -d -c" How can I handle options in a Uunix shell script? ...

Microsoft DOS vs Unix

Which one is more powerful operating system? And is it possible to convert Microsoft-DOS batch file into Unix Script and vice-versa? ...

issue in getopt , Unix shell script

Hi can someone fix this issue, i am not able to get outpt. I am not able to get output of -p. #!/bin/bash args=`getopt c:m:p $*` if [ $? != 0 -o $# == 0 ] then echo 'Usage: -c <current-dir> -m <my dir> -p <argument>' exit 1 fi set -- $args for i do case "$i" in -c) shift;CURRDIR=$1;shift;shift ;; ...

How do I run a script on the 1st working day of every month?

I have to run a script on the 1st working day of every month. Please suggest how I can do it in Perl. Lets say if its national holiday in that country, the script should run on 2nd working day. I have one binary which give me output of previous working day if its holiday for specific country. ...

How to create a autorun file in linux and execute a shell file ?

Hi, How to create a autorun file in linux which is similar to autorun.inf in Windows in order to execute a shell file ie Following are the requirment 1.Autorun the installer file ./example.sh When CD is mounted onto the system . ...

kaspersky support command line interface ?

kaspersky support command line interface yes or no (or how i can control with kaspersky by command line interface) ... and how i can use it to scan some file on AIX server UNIX operating system ... ...

How to concatenate two files line by line using bash

I have two text files, each of them contains an information by line such like that file1.txt file2.txt ---------- --------- linef11 linef21 linef12 linef22 linef13 linef23 . . . . . . I would like to concatenate thes...

How to delete text delimited by { and }

hello, I am new to UNIX programming and had the following problem with UNIX vi editor. Can you please tell me the UNIX command required to delete text delimited by { and } where both characters occur after the current cursor position. Thanks. ...

Modifying command line args so that they cannot be seen in ps output

Hi everyone, I have an executable that accepts certain command line arguments. Any user on the machine can find the arguments by doing a ps (Unix) or procexp (Windows). Some of these arguments are things like passwords. I know we should not be passing in passwords like that. Is there any way in code of the executable that I can change ...

Sending bytes to serial port from UNIX command line?

i would like to send a stream of bytes to a serial port using the command line. is this possible? my serial port is at /dev/cu.usbserial-A700dYoR on my Mac. for example, if i wanted to send the integer 50 or the string "data" to that serial port, how can i do that? my knowledge of UNIX is very limited. ...

Help Using werc

Hello, Can anybody tell me some sources from which I can learn how to use werc framework? (The documention on the site is very poor) Thanks ...

Linking in C using gcc

If I wanted to link the following objects and libraries, p.o → libx.a → p.o Where a → b denotes that b defines a symbol that is referenced by a. Would UNIX% gcc p.o libx.a be enough in the command line or do I need to do something like: UNIX% gcc p.o libx.a p.o Thanks. ...

Make Vim's glob() also match hidden dot files.

In a Linux or Mac environment, Vim's glob() function doesn't match dot files such as .vimrc or .hiddenfile. Is there a way to get it to match ALL files including hidden ones? The command I'm using: let s:BackupFiles = glob("~/.vimbackup/*") I've even tried setting the mysterious {flag} parameter to 1 and yet it still doesn't return t...

how i can make windows server 2003 see some directory from UNIX-AIX ?

how i can make windows server 2003 see some directory from UNIX-AIX ? i want share files between windows server 2003 and unix aix 6.1 ...

how i can take backup of file on UNIX-AIX ?

how i can take backup of file on UNIX-AIX ? ...

Is it possible for a Perl script running on a Unix/Linux platform to create Windows Shortcuts?

If I want to create a *nix symlink, I'll call symlink();, if i'm running a script on windows and I want to create a shortcut, I'd use Win32::Shortcut. But what if I want to create a Windows shortcut if running a script from a *nix machine? I'm accessing a SMB share on a Windows Server 2003 machine from my *nix machine. ...

return common fields in two files

Hi, I have two files, should compare 1st column of file1 with 1st column of file2 and the resultant file should be file2 For example: file1 apple banana Mango potato tomato file 2 apple:fruit brinjal: vegetable lady's finger: vegetable orange: fruit tomato: vegetable potato: vegetable Resultant file should look something like th...

SVN encrypted password store

Hi, I installed SVN on a Ubuntu machine and I can't get my head around something. Whenever I checkout something from the terminal I get this error about saving a non-encrypted password: ----------------------------------------------------------------------- ATTENTION! Your password for authentication realm: <[...]> Subversion Rep...