All Questions
Tagged with programming scripting
11 questions
1
vote
0
answers
55
views
Running a program/script before a user logs in on RedHat Linux GUI
I am looking to run a script prior to a user being able to log in on the GUI.
Its a basic script, do you accept Ts&Cs Y/N, enter user name, data is captured and stored. Then once complete takes ...
0
votes
1
answer
100
views
How to make a script which create a file with the info i want?
i'm a newbie on Linux here and i was hoping to find help. I was using Centos and i've found an exercise where i have to create a script.
This script should create a text file with the network ...
-3
votes
1
answer
62
views
Perl having problem in programme execution [closed]
#!/usr/bin/perl
#Script:name2.pl - Demonstrates use of chop
#
print("Enter your name:");
$name=<STDIN>;
$lname = chop($name); #Removes newline character from $name
...
0
votes
2
answers
7k
views
How to get into python environment and run some python commands and return to normal terminal using shell script
Sorry about the title it may not be clear. Here is the complete explanation of my doubt. I am writing the below shell script and expecting the mentioned output.
#!/bin/bash
python3
print("Hello ...
0
votes
1
answer
360
views
detect cms from list
my marketing department wanted from me detect our domains for that if they use Wordpress. I have our huge list of domains, but I can't find proper cms detector which will just save which domain has ...
-1
votes
1
answer
117
views
How Mount a datastore on linux in python [closed]
I need to mount xyz/pqr/ datastore on my linux mychine for in my python script.
-1
votes
1
answer
344
views
Append value as parameter to shell script
I found the value of a response (curl) with sed and now i need some help to take the value that i printed in a file and to use it in another substring in the same .sh script
This is the response of ...
2
votes
2
answers
1k
views
Trying to convert a simple C program into an AWK program
Hey guys a couple of weeks ago I wrote a C program that prompts the user for the name of a text file and then prompts the user for a word. The program then outputs the input text file with numbers to ...
1
vote
1
answer
175
views
Is there a tool that automatically inserts and updates a script header block for e.g. shell or Python scripts?
I found scripts by a former admin who scripted quite nice things with Bash or Python. All his scripts are well formatted and equipped with a always similar looking "script header" or "code header", I ...
2
votes
1
answer
72
views
Storing one bit of information in user space [closed]
I'm writing a program that collects network data. I need to store one bit of information, a simple yes/no, somewhere so another process may read it. I have several options: writing a 1 or 0 to a file, ...
0
votes
3
answers
2k
views
how to run more than one program in a single script?
I have about 6 programs I want to run one after the other. They all are in different directories with their respective data. I would like help with a script that I can use to run each program in a ...