Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [unix]

NOTICE: All Unix questions must be related to programming; those that aren't will be closed. Use this tag only if your question relates to programming using Unix APIs or Unix-specific behavior, not just because you happen to run your code on Unix. General software issues should be directed to Unix & Linux Stack Exchange or to Super User.

-1 votes
0 answers
39 views

Use EOF to execute multi-line command in PSQL

I'm trying to run a PostgreSQL anonymous block in psql in nohup mode and capture the log in an output file. I am trying to put the code inside EOF but I always get an error. Not sure how to implement ...
Mano's user avatar
  • 669
-1 votes
1 answer
82 views

Why lines variable is 0?

I've created wc like program and when i tried to do line counting, it shows as 0. The code: #include <stdio.h> #include <stdlib.h> FILE* file; int main(int argc, char* argv[]) { //...
TeenProgrammer's user avatar
0 votes
1 answer
21 views

Copy only *.log file [duplicate]

I have the below .ksh file. I just want to copy *.log file from parent_dir to target_dir while maintaining the folder structure and time stamp. The below ksh copies EVERYTHING from source/parent_dir. ...
Arpit's user avatar
  • 333
0 votes
2 answers
18 views

AD Group Vs Ldap Netgroup

i am trying to understand if there is any difference between AD group and LDAP netgroup My understanding is ldap is used to access the ldap server which is active directory in this case. How is sudo ...
Kiran Balakrishnan's user avatar
-1 votes
0 answers
23 views

how to run/automate multiple unix commands using Jsch in java

In our project, we have autosys jobs that needs to be triggered through putty. But before we trigger, we need to run these 4 commands and then trigger the autosys job using sendevent command. pbrun ...
Nitish's user avatar
  • 1
-1 votes
0 answers
24 views

How to run multiple unix commands sequentially using JSch library [closed]

In our project we are triggering autosys commands using sendevent, autorep commands. For these autosys commands to run....we first need to execute the below four commands in putty and then fire the ...
Nitish Goyal's user avatar
1 vote
5 answers
97 views

How to add headers to a CSV file which already has some headers in it

My requirement it to add the new headers to an existing CSV file which already has some headers in the fist line. I need to add the new headers at the end of the existing headers. The value of the new ...
Loganayaki mahalingam's user avatar
1 vote
1 answer
62 views

How can I generate a green square that follows my mouse on MacOS?

I'm trying to write a python application that generates a green square with no filling, that follows my cursor. I want this square to always be visible, so in CSS terms, I want it's z-index to be ...
Nehir Gökçe's user avatar
1 vote
2 answers
30 views

Make Docker a proper UNIX citizen

I'm trying to write a wrapper over Docker to propagate signals and standard output in a sensible way. First, Docker doesn't handle SIGPIPE nicely: $ docker run --rm ubuntu yes | head y y y y y y y y y ...
Patrick Coppock's user avatar
0 votes
1 answer
38 views

Cannot kill Popen process [duplicate]

I have a Python program with the following structure and necessary imports: def startLogger(logger_dir): command0 = 'adb logcat -c' command1 = 'adb logcat' command2 = 'python3 '+logger_dir+...
Priyansh Gupta's user avatar
-1 votes
0 answers
12 views

character like '\' coming in SQL output while assigning the output to a variable in shell script [duplicate]

I am trying to run a SQL query in shell script and assigning its output to a variable. When I run the script in Putty in the output variable character like \ is coming in data. But when I run the same ...
Rohit Bansal's user avatar
-3 votes
1 answer
121 views

How to interface with a UNIX port? [closed]

I have encountered this same question in numerous forms over the past year, and have not been able to find the solution I am after. As the question has yet again reared its head, I am asking here with ...
BrownianBridge's user avatar
0 votes
0 answers
18 views

Where should a binary file that must be executed by another program be stored on a UNIX system?

I am writing a program that uses a library which requires that my program be called by a driver which initializes the environment etc first. This is done by passing the path of my executable (or just ...
user21749640's user avatar
0 votes
1 answer
40 views

How to make nohup release prompt?

The script below never prints done unless you manually hit the enter key. The dev machine is osx, the server ubuntu 22.04. It's a script to restart the remote web server. Web server uses bun.js ...
Alex Craft's user avatar
  • 14.7k
0 votes
1 answer
18 views

Multiple variables in input and output using wildcards snakemake

rule all: input: expand("tissues/{id}/atac_seq/{srr}/{srr}_S1_L001_R1_001.fastq.gz", id =IDs, srr = df[df['library_type']=='Chromatin Accessibility']['Library']), expand("...
user25645294's user avatar

15 30 50 per page
1
2 3 4 5
3178