Quantcast
Channel: UNIX and Linux Forums
Browsing all 16232 articles
Browse latest View live

Btables to setup Forwarding and ethernet level NAT!

Link to this post 13 minutes ago I would like to use ebtables to perform the following 2 things: SCENARIO I: I would like to forward all the packets received from eth0 interface onto the eth1...

View Article


Run script in new terminal

Hi Guys, I have a script that runs certain simulations in batch mode. I need to schedule some simulations to run over night. For each simulation to complete it should be run in separate terminal. My...

View Article


Add event

Hi all, Need to solve this problem file1.txt Code: 0912804166|RR 0912804171|YY file2.txt Code: 0912804175|AXE|510100475741082 0912804166|NODE|0 I need to add event on file1.txt if column 1 in file1.txt...

View Article

Unable to list files in a directory

Hi have a system running solaris with a mount point running 58% capacity used, but unfortunately when I type Code: ls -lrt in a specific directory, it returns: Code: ls: Not enough space . I suspect...

View Article

Integrating bash shell

Hi folks... I am working on a project where I need to have online bash bash shell integrated in my web page. I am not clear of how to do it. can any one suggest?? The UI needs to be developed in c#.

View Article


What this while loop is doing?

Can anyone please explain what this code is doing for first 6 lines? I believe this is array but I couldn't understand what exactly it is doing. Code: set -A Dis_array 95 typeset -L2 distribution let...

View Article

Samba on AIX, issues setting read-only flag on files?

Hello, I am having issues setting the "read-only" flag via Windows Explorer on my AIX Samba share... I have on my AIX 7.1 system installed Samba 3.6.24 and configured, joined to our Windows domain...

View Article

Image may be NSFW.
Clik here to view.

If Telnet fail abort other command..??

Hi Team, I my script i telent my node ip and after loging i run some commands...But some time login fail so i want to stop script at that time.. CONFIG_CHNG.sh Code: printf 'Please Input Node ID : '...

View Article


What is ${#1}?

What is the purpose of ${#1} in a shell script? if [[ ${#1} -le 0 || ${#2} -le 0 ]]; then

View Article


Solaris 11.2

I have downloaded version 11.2 of solaris to try out on a spare 500GB hard drive I have lying around. When I boot from the live dvd it allows me to select the desktop, and then it comes up with Sun OS...

View Article

Help on script to capture info on log file for a particular time frame

Hi I have a system running Code: uname -a Linux cmovel-db01 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux I would like to capture the contents of /var/log/syslog from...

View Article

Problem exporting NFS filesysytem with root permissions to Linux

Hi, I have a Solaris 10 server and I want to export a filesystem to a linux client and give the client's root user root priviliges on the filesystem. The client is an ubuntu 14.04 LTS server. the...

View Article

TUI for Raspery Pi?

Heyas Just followed a conversation on IRC#ffmpeg, actualy just from the logs as they were offline when i came back. Anyway, they were talking about a terminal interface for their Raspery Pi using SSH....

View Article


Parse xml in shell script and extract records with specific condition

Hi I have xml file with multiple records and would like to extract records from xml with specific condition if specific tag is present extract entire row otherwise skip . Code: <logentry...

View Article

Shell script question

I am getting error files missing. can any0ne tell me I can able to read the file . can you tell what the other part does Code: xargs -i test -f {} Code: cat $S.file | uniq | xargs -i test -f {} ||...

View Article


Change ? char from files and directory

Hello, I must change files and dirs name which contains che "?" char, I try this: Code: rename 's/?/-/' *.* nothing, what's the problem? thanks

View Article

Find command doesn't return in shell script.

Hi All, I am using below snippet to search for a string (read from a file 'searchstring.out') in all locations (/) and then iterate over the files found to write the locations and the respective owner...

View Article


NFS share full access for local user

Hi All, Is it possible to give full access for a normal user in a NFS share? If its not possible is there a trick with which I can make it work? Thanks in advance Shyam

View Article

shell scripting to determine special chars in file

Hi, I need all your help to achieve the below functionality. I have a big 2 GB file and inside the file we need to identify, whether having a comma(,) or pipe(|) or tab or fixed position or...

View Article

Parsing a file with different patterns

I have a text file like this , where the same set of three lines repeat with different values. Code: INFO:  processing now 03/25/2015-00:06:05 03/25/2015-00:16:04 ------Invoking myexe table=table1 INFO...

View Article
Browsing all 16232 articles
Browse latest View live