Register
Login
Contribute
Subscribe
RSS
News
FAQForge
ISPConfig
Subscribe
Contribute
Forums
Howtos
Navigation
Howtos
Linux
Android
CentOS
Debian
Fedora
Kernel
Mandriva
PCLinuxOS
SuSE
Ubuntu
Web Server
Apache
Cherokee
Lighttpd
nginx
Backup
Control Panels
ISPConfig
DNS
BIND
MyDNS
PowerDNS
djbdns
Desktop
Email
Anti-Spam/Virus
Postfix
FTP
High-Availability
Lighttpd
Monitoring
MySQL
Programming
C/C++
PHP
Samba
Security
Anti-Spam/Virus
Storage
Virtualization
KVM
OpenVZ
VMware
VirtualBox
Xen
Other
FreeBSD
Commercial
Mini-Howtos
Linux
Apache
Backup
DNS
Errors
FTP
MySQL
Networking
PHP
Postfix
Security
Sendmail
Shell
Other
ISPConfig
Forums
Contribute
Create Content
Subscription
Login
Site Map/RSS Feeds
Facebook
News
BeagleBone Black ships, climbs Device Tree with Linux 3.8
Digia launches Boot to Qt technology preview
Tripwire on why Red Orchestra 2 and Rising storm won't come to Linux
Zorin OS 7 Release Candidate out now
Command Line Calculator bc – 11 Extremely Useful Examples
Linux Professional Institute Hosts Exam Labs at SouthEast LinuxFest 2013
ProjectLibre edges in on Microsoft Project dominance
Linux-friendly SBC suits display apps on trains, planes, buses
Designing Electronics with Linux
Use Freeradius and perform Authentication, Authorization, and Accounting to connect and use a network service
more
Recent comments
Instead of copying and
23 hours 31 min ago
 Correction: fro m_address=`
1 day 6 hours ago
tuto thanks
1 day 10 hours ago
WFM
1 day 11 hours ago
Re: PHP now has mail logging built-in
1 day 20 hours ago
Success!
2 days 5 hours ago
Installation successful, but I can't receive any mail...
2 days 6 hours ago
Security
2 days 9 hours ago
I skimmed through the steps,
2 days 14 hours ago
Thanks
2 days 14 hours ago
Newsletter
Subscribe to HowtoForge Newsletter
and stay informed about our latest HOWTOs and projects.
(To unsubscribe from our newsletter, visit this
link
.)
English
|
Deutsch
|
Site Map/RSS Feeds
|
Advertise
HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials
>
Linux Forums
>
Programming/Scripts
[SHELL] script in script
User Name
Remember Me?
Password
Register
FAQ
Members List
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Do you like HowtoForge? Please consider supporting us by
becoming a subscriber
.
Thread Tools
Display Modes
Prev
Next
#
1
7th August 2007, 17:04
mopsos
Junior Member
Join Date: Feb 2007
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
[SHELL] script in script
Hi,
I have a problem with the execution of a script in a script.
I want recover a variable in a script and test this in a other .
For exemple :
A script : sc1.sh
Code:
#!/bin/sh var=3
A script : sc2.sh
Code:
#!/bin/sh sh /folder/sc1.sh if [ var -eq 3 ] echo "goods" fi
But this is bad.
I try with export var , but it's not good too.
Can you say me how can I do this?
Thx.
mopsos
View Public Profile
Send a private message to mopsos
Find all posts by mopsos
Sponsored Links
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Switch to Linear Mode
Switch to Hybrid Mode
Threaded Mode
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Linux Forums
HOWTO-Related Questions
Installation/Configuration
Server Operation
Desktop Operation
Kernel Questions
Programming/Scripts
Technical
Suggest HOWTO
ISPConfig 3
General
Installation/Configuration
ISPConfig 3 Priority Support
Plugins/Modules/Addons
Tips/Tricks/Mods
Feature Requests
Developers' Forum
ISPConfig 2
General
Installation/Configuration
Tips/Tricks/Mods
Feature Requests
Developers' Forum
MyDNSConfig
General
Other Forums
Smalltalk
Forum Suggestions
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Subdomain redirect to script as argument
cooljai
Server Operation
0
12th June 2007
16:41
apache2 problem
laser144
Server Operation
8
15th March 2007
17:32
Windows PHP script problem
richj1232003
Programming/Scripts
1
2nd November 2006
09:01
Could someone test this script? For server configuration
danf.1979
Installation/Configuration
2
22nd July 2006
22:40
Executing ICON script
lawson
Programming/Scripts
3
28th December 2005
20:51
All times are GMT +2. The time now is
05:19
.
Contact Us
-
HowtoForge - Linux Howtos and Tutorials
-
Archive
-
Top
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Recent comments
23 hours 31 min ago
1 day 6 hours ago
1 day 10 hours ago
1 day 11 hours ago
1 day 20 hours ago
2 days 5 hours ago
2 days 6 hours ago
2 days 9 hours ago
2 days 14 hours ago
2 days 14 hours ago