Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
shell_exec
- Page 1
Re: Create Infinite Loop In Bash
Hardware and Software
Linux and Unix
4 Days Ago
by Vince_6
Be Careful what you wish for. When I was first using Unix one of our programmers wrote a Bash script something like: While 1 Do Something He eventually overloaded the system and it crashed.
Re: Create Infinite Loop In Bash
Hardware and Software
Linux and Unix
3 Days Ago
by asadalikhan
while true; do echo "Running..."; sleep 60; done This runs forever, printing "Running..." every 60 seconds. No script file needed, just drop it in the terminal and you're good.
Re: Cannot run exe from asp.net
Programming
Web Development
1 Week Ago
by lennyli
Why does the following code dont run and launch the exe I specify (eg, notepad.exe, or ribbons.scr)? <%@ Language="VBScript" %> <!DOCTYPE html> <html> <Body> <% Dim objShell Dim command Dim result ' Path to the executable command = "C:\…
Re: How old is your computer?
Hardware and Software
2 Months Ago
by Reverend Jim
I stick with Windows because of long familiarity at the office. After years of networking/sysadmin and dbadmin I just had too much invested in MS. Too bad OS/2 died. When we got PC workstations for the control centre operators to interface to our AGTC/SCADA system we went for OS/2. We felt it was far superior to anything from Microsoft at the time…
Re: python programming issue
Programming
2 Months Ago
by GodMode9
I have faced similar issues before! Sometimes the problem is related to incorrect indentation. Python is very particular about spaces, so double-checking your code can help fix the issue.
Re: python programming issue
Programming
2 Months Ago
by Pebble94464
Hi Ccrobinson001, I've just attempted installing to my system but could not reproduce the issue. Everything installed as expected. Maybe you could try upgrading **pip** and **setuptools** first, if you haven't done so already? pip install --upgrade pip setuptools I recreated your requirements.txt file based on the output that you …
Shell Script Tasks
Programming
Software Development
13 Years Ago
by Icostyle
Shell Script Tasks This is a homework assignment to create the below described shell scripts. I need the scripts so I can complete my university education. If you would like to help me and can create these scripts, please send them in a zip or rar file to my email: [email]technologicbg@yahoo.com[/email] Thank you. Task 1: Compile a script named…
Shell Programming
Programming
Software Development
22 Years Ago
by MAD_DOG
Shell Programming for UNIX/Linux is finally over thank god! C/C++/Perl I hate that shit lol it's over and I learned something. 1&>2 = I dont really know if this is right lol or 1>&2 = Something is redirecting something lol
Re: Shell Initialization
Programming
Software Development
13 Years Ago
by thekashyap
"shell is uninitialized" means that the files (scripts) listed there (/etc/profile, ...) are NOT executed. So whatever env variables you're setting/updating in those files are not set/updated.
Re: Shell Programming
Programming
Software Development
20 Years Ago
by tccummings
[QUOTE=MAD_DOG]Shell Programming for UNIX/Linux is finally over thank god! C/C++/Perl I hate that shit lol it's over and I learned something. 1&>2 = I dont really know if this is right lol or 1>&2 = Something is redirecting something lol[/QUOTE] This gave me a laugh. I'm currently in a Unix class and we are doing shell …
Re: Shell Programming
Programming
Software Development
16 Years Ago
by ck112
Actually i need a project in Linux and i have heard that the projects are made through shell scripting.. Plz help me..!!!
Shell script that lists files with different owner that the folder
Programming
Software Development
13 Years Ago
by Zwiebi
Hello, I'm trying to write a script which is listing files based on different preferences, like filetype or permissions. All is fine, except for one: I want to list files in /home which has a different owner than the home directory it is in. Here is an example: /home/UserA is the directory, and /home/UserA/foobar.txt is the file, that is owned …
Re: Shell script that lists files with different owner that the folder
Programming
Software Development
13 Years Ago
by rch1231
Hello, What you are trying to do is really what unix shells were designed for. Try this: [CODE]for x in `/bin/ls /home` do find /home/$x \! -user $x -exec echo "{}" is not owned by $x \; done [/CODE] This executes the command /bin/ls /home and puts the results in that place in the for loop. The reason you use [B]/bin/ls…
Re: Shell script that lists files with different owner that the folder
Programming
Software Development
13 Years Ago
by Zwiebi
Thank you for your answer! With some help, I managed to merge my different codes together, and this is the result: [CODE]#!/bin/bash cd /home DIR=$( ls -l | awk '{print $3}' ) for dir in $DIR do user=$( basename $dir ) find $dir ! -user $user -type f -exec echo "{}" is not owned by $user \; done[/CODE] It's pretty …
Re: shell script as a daemon
Programming
Software Development
18 Years Ago
by jim mcnamara
Your script is tough to read - for me at least. I don't see basic things like exec, closing stdin, stdout, etc. Try reading this see if it makes sense in the context of your shell script. In general, it is possible to have a script "daemonized", but you have to do some things to make it work, so you need to use a robust shell like …
Shell Initialization
Programming
Software Development
13 Years Ago
by prathu1
help me to understand the below highlighted: [B][COLOR="Red"]When the login program executes a shell, that [U]shell is uninitialized[/U]. When a shell is uninitialized, important parameters required by the shell to function correctly are not defined.[/COLOR][/B]The shell undergoes a phase called initialization to set up these …
Re: Shell Initialization
Programming
Software Development
13 Years Ago
by prathu1
I,m confused with the below statement. I would like to know if the below said is true then when is the shell initialized? [B]When the login program executes a shell, that shell is uninitialized.[/B]
Re: Shell Initialization
Programming
Software Development
13 Years Ago
by prathu1
What is uninitialized shell when login program executes.
Re: Shell Initialization
Programming
Software Development
13 Years Ago
by griswolf
It is a temporary state of the shell. The steps are as the man page quote says: [list=1] [*]The shell program starts (it is not yet initialized) [*]/etc/profile is sourced if it exists (it is partly initialized) [*]$HOME/.profile is sourced if it exists (it is fully initialized) [*]Now a prompt is displayed (it is fully initialized) [*]You may …
Shell script to switch users ...
Programming
Software Development
19 Years Ago
by petesmc
Hi, I want to switch users using a shell script, i.e. su username However, i can't figure out how to enter the password in via a shell script. Anyone know how to do this, it's definately out of the scope of my shell scriptin knowledge. Thanks -peter
shell script prob
Programming
Software Development
18 Years Ago
by hillol
hi i m very new to shell script. my prob: i have a dat file and a database table(oracle). one column of that table and dat file is same. i want to replace another column of that table matching the value of the column of the table with that of the column of that file. i want to do it ina shell script using sqlplus. how can i do it? is it …
Shell Script to Zip / FTP / Delete transactional files.
Programming
Software Development
17 Years Ago
by jethfo
Calling All Shell Scripters, I am a web developer needing assistance from someone with shell scripting expertise. Does anyone have a unix shell script that can look into a directory and identify any "*.zip" files and ftp them to a remote server? Upon successful completion of the FTP transfer I want to delete the ZIP file from the …
Shell on linux
Programming
Software Development
15 Years Ago
by masza
previously I apologize for my bad english. I am still new to linux. I just wanted to ask about shell programming, how influential shell programming on linux? Is there someone who has an article or an e-book about pemrogrman shell for beginners? May share here? thanks :D
Shell won't run.
Programming
Software Development
14 Years Ago
by thehivetyrant
Hi there, I'm making a simple shell program in [B]pico using Unix[/B]. I was given most the code from a tutor and added bits to it, it's supposed to go to a prompt allowing user to type but instead it does nothing. [B]No errors are shown.[/B] Btw: i use [B]gcc -o shell shell.c[/B] to try to compile and run it. Hopefully someone could…
Shell to snipping tool in Windows - 8 returns error with no message
Programming
Software Development
11 Years Ago
by Deva.VG
Hi, The below link provides a solution to access snipping tool using shell script, but the same is not working against windows-8 http://www.mrexcel.com/forum/excel-questions/497620-shell-snipping-tool-returns-run-time-error-53-file-not-found.html Please suggest us to use snipping tool against shell scripting in Windows-8
Re: Shell won't run.
Programming
Software Development
14 Years Ago
by Aia
[quote=thhivetyrant]No errors are shown. Btw: i use gcc -o shell shell.c to try to compile and run it.[/quote] Then you must be posting a different piece of source code that what you compiled. What you posted has several syntax errors. Watch the red and the comments [CODE]void help() [COLOR="Red"]}[/COLOR] [COLOR="Green"…
Shell Script Issue
Programming
Software Development
19 Years Ago
by antrieb
I need to create a shell script that controls the users runlevel at every startup/logon of the linux system. the user should be prompted with a menu screen taht asks for their desired runlevel. The user should be presented with the following 3 choices: ¤ Single User Mode ¤ Full/Extended Multi-User Mode ¤ Graphical/XII Mode The user should be &…
shell script for number sequence--- anybody help me?
Programming
Software Development
19 Years Ago
by diddle
Can anyone help me for shell programming basic concept? I want to print the number from 1 to 10 in file1.txt from 2 to 11 in file2.txt from 3 to 12 in file3.txt from 4 to 13 in file4.txt . . . from 21 to 30 in file21.txt How to write a shell script for this overlap number sequence? for example My code like the following will …
shell script as a daemon
Programming
Software Development
18 Years Ago
by massoo
hi, can i run a shell script as a daemon ? the shell script looks like this : [INLINECODE] #!/bin/sh BATDIR='/' export JAVA_HOME='/usr/java/jdk1.5.0_06/bin/java' export MESSAGE_SENDER_HOME='/home/mas50o21/MessageReader/' export LIB='/lib/' export COMMONS='/commons/' export JBOSS_HOME='/home/jboss/jboss-4.0.3SP1/' export CLASSPATH=$…
Shell Script for Load monitoring!
Programming
Software Development
18 Years Ago
by rags
I am working as a java programmer and have no experience writing shell scripts or prior experience in UNIX...I would appreciate if someone helps me write a Shell script that: a) Runs from one machine. b) ssh into all of the other machines. c) Collect the cpu% usage from each machine. d) Write a scheduler which will send this data as mail if CPU%&…
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC