Questions tagged as 'unix'

1
answer

Multiplatform C program

If I make a program in C and do not use any Windows library by leaving the program completely pure in C can I compile it for Linux too? Will it work normally?     
asked by 04.08.2015 / 19:22
2
answers

What is the difference between open and opendir calls on UNIX?

If the opening of files is used the system call open, because there is another system call to open files directory (opendir), if a directory is a file type? Was not it just a call for all file types?     
asked by 31.10.2014 / 05:28
3
answers

Problem creating a .sh script to get into a directory

I'm creating a .sh script that the first step is to get into a directory. 1. #!/bin/bash cd /home/salariosbrasil/consulta-ninja #git pull pwd This directory exists and even cd does not work .. but your self test mkdir -p...
asked by 24.01.2017 / 20:40
1
answer

Script to exchange place string with another string

I have the file /etc/udev/rules.d/70-persistent-net.rules that have such interfaces: SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="1c:af:f7:e7:a4:3c", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" S...
asked by 21.07.2015 / 20:28
1
answer

Unix Grep command handling the output if there is no result

Good morning !! I'm creating a script and I need when I make a grep on a line and can not find it, it returns the parameter I looked for! grep "192.0.0.1" /file.txt In the .txt file it does not have the string "192.0.0.1" I want it to retu...
asked by 12.02.2018 / 14:39
1
answer

Apropos for PowerShell

On Windows there is a PowerShell solution that can display some semicolon search results for apropos Unix?     
asked by 05.05.2016 / 20:47
1
answer

In bash, what is the difference between a null string and an empty string?

I would like to know if there is a difference in how bash represents variables with null values var= and with empty strings var="" What precautions should I take when handling variables like these?     
asked by 24.12.2016 / 20:33
1
answer

Remotely access another unix machine with Vim

According to this video link you can access another unix machine with Vim and continue editing the file from where I stopped. How can I do it?     
asked by 15.09.2014 / 01:52
0
answers

PAM Service - External Authentication via LDAP

Hello everyone, I need help, My application runs using a domain user and I need to access it through a webservice using this LDAP AD user on linux, for this I am using PAM Service, I created the appauth file inside /etc/pam.de I did the follo...
asked by 18.07.2018 / 04:25
0
answers

Linux script to send e-mail from the result of the find command [closed]

I need a help in a script to send a result by email from a search (find) and run every day at 08:00 without using contrab in linux     
asked by 13.06.2017 / 14:49